Accept external CFLAGS and LDFLAGS

git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@1755 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
meep-eep
2005-05-14 21:11:51 +00:00
parent 684bb7c27c
commit 680d4af79c
+4 -4
View File
@@ -6,12 +6,12 @@ TARGET = synch
# For MacOS X: SDL, Ogg and Vorbis are provided as frameworks,
# which require different flags than unix-style shared libs
ifeq ($(shell uname), Darwin)
CFLAGS = -D__MACOSX__
LDFLAGS = -framework Ogg -framework Vorbis -framework SDL \
CFLAGS += -D__MACOSX__
LDFLAGS += -framework Ogg -framework Vorbis -framework SDL \
-framework Cocoa
else
CFLAGS = $(shell sdl-config --cflags)
LDFLAGS = -lvorbisfile -lvorbis $(shell sdl-config --libs)
CFLAGS += $(shell sdl-config --cflags)
LDFLAGS += -lvorbisfile -lvorbis $(shell sdl-config --libs)
endif
CFLAGS += -DUSE_SDLAUDIO=1 $(shell fltk-config --cxxflags)