From 0b049c3ea601a7ea6dc441db73af7a5bd75c834a Mon Sep 17 00:00:00 2001 From: Chris Xiong Date: Wed, 7 Oct 2015 22:50:48 +0800 Subject: Make the compiler happy. Add some makefiles. --- smelt/sdl/makefile | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 smelt/sdl/makefile (limited to 'smelt/sdl/makefile') diff --git a/smelt/sdl/makefile b/smelt/sdl/makefile new file mode 100644 index 0000000..aa9acb8 --- /dev/null +++ b/smelt/sdl/makefile @@ -0,0 +1,13 @@ +CC= g++ +CXXFLAGS= -c -std=c++11 -Wall -I/usr/include/SDL/ -I../include -D_LINUX + +all: objects archive clean + +objects: + $(CC) *.cpp $(CXXFLAGS) +archive: + $(AR) rcs libsmelt.a *.o +clean: + if ( test gfx_sdl.o ); then rm *.o; fi +clean-all: clean + rm *.a \ No newline at end of file -- cgit v1.2.3