diff options
author | Chris Xiong <chirs241097@gmail.com> | 2016-01-07 23:54:06 +0800 |
---|---|---|
committer | Chris Xiong <chirs241097@gmail.com> | 2016-01-07 23:54:06 +0800 |
commit | 1d64816653b5d1835dd60762c2bc64f000d88fa5 (patch) | |
tree | 62817d39f4713d0f41ff275a21e25a31017c2a1e /smelt/sdl/makefile | |
parent | 49e67bc8566e8c5017b931837792a648cb0048c2 (diff) | |
download | SMELT-1d64816653b5d1835dd60762c2bc64f000d88fa5.tar.xz |
Add a new way to hook into smelt.
Diffstat (limited to 'smelt/sdl/makefile')
-rw-r--r-- | smelt/sdl/makefile | 30 |
1 files changed, 23 insertions, 7 deletions
diff --git a/smelt/sdl/makefile b/smelt/sdl/makefile index aa9acb8..09d9237 100644 --- a/smelt/sdl/makefile +++ b/smelt/sdl/makefile @@ -1,13 +1,29 @@ CC= g++ -CXXFLAGS= -c -std=c++11 -Wall -I/usr/include/SDL/ -I../include -D_LINUX +CXXFLAGS= -c -g -std=c++11 -Wall -I/usr/include/SDL/ -I../include -D_LINUX -all: objects archive clean +all: objects-normal archive-normal -objects: - $(CC) *.cpp $(CXXFLAGS) -archive: - $(AR) rcs libsmelt.a *.o +dumb: objects-dumb archive-dumb + +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 clean: - if ( test gfx_sdl.o ); then rm *.o; fi + rm -f *.o clean-all: clean rm *.a
\ No newline at end of file |