On Haiku, there are two different versions of gcc available (gcc2 and gcc4). Since

mixing them in the same binary result in linker error, build them in separate dirs.


git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1961 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
Adrien Destugues 2012-06-02 09:05:54 +00:00
parent 125207cfc8
commit ff9f228b5f

View File

@ -202,7 +202,9 @@ endif
COPT = -W -Wall -c -g $(shell sdl-config --cflags) $(TTFCOPT) -I/boot/common/include $(LUACOPT) COPT = -W -Wall -c -g $(shell sdl-config --cflags) $(TTFCOPT) -I/boot/common/include $(LUACOPT)
LOPT = $(shell sdl-config --libs) -lSDL_image -lpng -ljpeg -lz $(TTFLOPT) -lfreetype -lbe $(LUALOPT) LOPT = $(shell sdl-config --libs) -lSDL_image -lpng -ljpeg -lz $(TTFLOPT) -lfreetype -lbe $(LUALOPT)
CC = gcc CC = gcc
OBJDIR = ../obj/haiku #Append the gcc kind to the objdir (gcc2 or gcc4) to avoid conflicts when switching from one to other.
OBJKIND = $(lastword $(shell setgcc))
OBJDIR = ../obj/haiku/$(OBJKIND)
ZIP = zip ZIP = zip
else else