From ca6a10216b8910ddae1e1540fc29b72434b34ee8 Mon Sep 17 00:00:00 2001 From: Adrien Destugues Date: Tue, 12 Jan 2010 12:26:27 +0000 Subject: [PATCH] -Some support for TRU64 unix. I don't have SDL on this machine so I'm not sure how far I can get it... git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1243 416bcca6-2ee7-4201-b75f-2eb2f807beb1 --- Makefile | 18 ++++++++++++++++++ struct.h | 2 +- 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 11aff6c4..568fc941 100644 --- a/Makefile +++ b/Makefile @@ -185,6 +185,23 @@ else OBJDIR = obj/skyos ZIP = zip + else + ifeq ($(PLATFORM),OSF1) #9 + #OSF1 / tru64 alpha + DELCOMMAND = rm -rf + MKDIR = mkdir -p + RMDIR = rmdir + CP = cp + ZIP = zip + PLATFORMFILES = gfx2.png + BIN = grafx2 + COPT = -W -Wall -std=c99 -c -g -D__TRU64__ `sdl-config --cflags` $(TTFCOPT) $(LUACOPT) + LOPT = `sdl-config --libs` -lSDL_image $(TTFLOPT) -lpng $(LUALOPT) -lm + CC = gcc + OBJDIR = obj/unix + X11LOPT = -lX11 + + else ifeq ($(findstring Kickstart,$(shell version)),Kickstart) # 9 # Classic amiga without gcc. Use vbcc. @@ -256,6 +273,7 @@ else endif endif endif + endif endif ### BUILD SETTINGS are set according to vars set in the platform selection, the "overridable defaults", and environment variables set before launching make diff --git a/struct.h b/struct.h index 82ef940d..69a804ac 100644 --- a/struct.h +++ b/struct.h @@ -27,7 +27,7 @@ #ifndef _STRUCT_H_ #define _STRUCT_H_ -#if defined(__BEOS__) +#if defined(__BEOS__) || defined(__TRU64__) #include #else #include