Patch from begasus to allow building under haiku and beos. The program is crashing when you launch it (segmentation violation).

I'm not sure the way to get the program directory we use is ok for beos, but the official way of doing that is using C++ code.
Maybe it's time to switch to some more unix way to store the config files...

This should also fix watcom build (very untested as i'm using mingw to cross compile windows builds now)
Also added begasus to the credits screen.


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@325 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
Adrien Destugues
2008-11-05 18:59:55 +00:00
parent b11d9e3ff9
commit 3422eeff46
10 changed files with 75 additions and 21 deletions

View File

@@ -47,7 +47,31 @@ else
NOTTF = 1
else
# Linux specific
#BeOS specific
ifeq ($(PLATFORM),BeOS)
DELCOMMAND = rm -rf
MKDIR = mkdir -p
BIN = grafx2
CFGBIN = gfxcfg
COPT = -W -Wall -c -g `sdl-config --cflags` $(TTFCOPT)
LOPT = `sdl-config --libs` -lSDL_image -lpng -ljpeg -lz $(TTFLOPT)
CC = gcc
OBJDIR = obj/beos
else
#Haiku specific
ifeq ($(PLATFORM),Haiku)
DELCOMMAND = rm -rf
MKDIR = mkdir -p
BIN = grafx2
CFGBIN = gfxcfg
COPT = -W -Wall -c -g `sdl-config --cflags` $(TTFCOPT)
LOPT = `sdl-config --libs` -lSDL_image -lpng -ljpeg -lz $(TTFLOPT)
CC = gcc
OBJDIR = obj/haiku
else
# Linux specific
DELCOMMAND = rm -rf
MKDIR = mkdir -p
ifdef WIN32CROSS
@@ -68,6 +92,8 @@ else
endif
endif
endif
endif
endif
#TrueType is optional: make NOTTF=1 to disable support and dependencies.
ifeq ($(NOTTF),1)
@@ -77,7 +103,7 @@ ifeq ($(NOTTF),1)
TTFLABEL = -nottf
else
TTFCOPT =
TTFLOPT = -L/usr/local/lib -lSDL_ttf
TTFLOPT = `sdl-config --libs` -lSDL_ttf
TTFLIBS = libfreetype-6.dll SDL_ttf.dll
TTFLABEL =
endif