diff options
author | 2016-10-25 22:28:57 +0800 | |
---|---|---|
committer | 2016-10-25 22:28:57 +0800 | |
commit | 6206029f2d0af3ef76a0a61ef024ca758307ba19 (patch) | |
tree | 3c5d558a8f2d8271cbf0cc5b827e3f2165402dc7 /smelt/sdl/makefile | |
parent | 12ac4db50e8c2b131d992733bb93b554e2cbd7d0 (diff) | |
download | SMELT-6206029f2d0af3ef76a0a61ef024ca758307ba19.tar.xz |
Add more options to the config file.
Diffstat (limited to 'smelt/sdl/makefile')
-rw-r--r-- | smelt/sdl/makefile | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/smelt/sdl/makefile b/smelt/sdl/makefile index fc513d5..d58f077 100644 --- a/smelt/sdl/makefile +++ b/smelt/sdl/makefile @@ -1,29 +1,27 @@ CC= g++ CXXFLAGS= -c -g -O2 -std=c++11 -Wall -I/usr/include/SDL/ -I../include -D_LINUX -fPIC +TARGET= libsmelt.a all: objects-normal archive-normal -dumb: objects-dumb archive-dumb +dumb: CXXFLAGS += -DENABLE_DUMB +dumb: TARGET= libsmelt-dumb.a +dumb: all objects-normal: gfx inp sfx sys -objects-dumb: gfx inp sfx-dumb sys - gfx: $(CC) gfx_sdl.cpp $(CXXFLAGS) sfx: $(CC) sfx_sdl.cpp $(CXXFLAGS) -sfx-dumb: - $(CC) sfx_dumb.cpp $(CXXFLAGS) inp: $(CC) inp_sdl.cpp $(CXXFLAGS) sys: $(CC) sys_sdl.cpp $(CXXFLAGS) archive-normal: - $(AR) rcs libsmelt.a gfx_sdl.o sfx_sdl.o inp_sdl.o sys_sdl.o -archive-dumb: - $(AR) rcs libsmelt-dumb.a gfx_sdl.o sfx_dumb.o inp_sdl.o sys_sdl.o + $(AR) rcs $(TARGET) gfx_sdl.o sfx_sdl.o inp_sdl.o sys_sdl.o + clean: rm -f *.o clean-all: clean - rm *.a
\ No newline at end of file + rm *.a |