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:
@@ -6,12 +6,12 @@ TARGET = synch
|
|||||||
# For MacOS X: SDL, Ogg and Vorbis are provided as frameworks,
|
# For MacOS X: SDL, Ogg and Vorbis are provided as frameworks,
|
||||||
# which require different flags than unix-style shared libs
|
# which require different flags than unix-style shared libs
|
||||||
ifeq ($(shell uname), Darwin)
|
ifeq ($(shell uname), Darwin)
|
||||||
CFLAGS = -D__MACOSX__
|
CFLAGS += -D__MACOSX__
|
||||||
LDFLAGS = -framework Ogg -framework Vorbis -framework SDL \
|
LDFLAGS += -framework Ogg -framework Vorbis -framework SDL \
|
||||||
-framework Cocoa
|
-framework Cocoa
|
||||||
else
|
else
|
||||||
CFLAGS = $(shell sdl-config --cflags)
|
CFLAGS += $(shell sdl-config --cflags)
|
||||||
LDFLAGS = -lvorbisfile -lvorbis $(shell sdl-config --libs)
|
LDFLAGS += -lvorbisfile -lvorbis $(shell sdl-config --libs)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
CFLAGS += -DUSE_SDLAUDIO=1 $(shell fltk-config --cxxflags)
|
CFLAGS += -DUSE_SDLAUDIO=1 $(shell fltk-config --cxxflags)
|
||||||
|
|||||||
Reference in New Issue
Block a user