aboutsummaryrefslogtreecommitdiff
path: root/smelt/sdl/CxImage
diff options
context:
space:
mode:
authorGravatar Chris Xiong <chirs241097@gmail.com> 2015-10-06 23:28:21 +0800
committerGravatar Chris Xiong <chirs241097@gmail.com> 2015-10-06 23:28:21 +0800
commitc93d16b6eb05984dc2c8ef474fe94d2136f6c0e2 (patch)
tree8e97181a5d07ffc525014875af12e83f9b16a409 /smelt/sdl/CxImage
parent038b31f0158a0018dbf2eceb71026cc4e665faa9 (diff)
downloadSMELT-c93d16b6eb05984dc2c8ef474fe94d2136f6c0e2.tar.xz
Add makefile and an example app.
Furthermore, make the compiler happier with my stupid code.
Diffstat (limited to 'smelt/sdl/CxImage')
-rw-r--r--smelt/sdl/CxImage/makefile12
1 files changed, 12 insertions, 0 deletions
diff --git a/smelt/sdl/CxImage/makefile b/smelt/sdl/CxImage/makefile
new file mode 100644
index 0000000..6dcb28b
--- /dev/null
+++ b/smelt/sdl/CxImage/makefile
@@ -0,0 +1,12 @@
+CC= g++
+CXXFLAGS= -c -Os -D_LINUX
+AR= ar
+
+all: objects archive clean
+
+objects:
+ $(CC) *.cpp $(CXXFLAGS)
+archive:
+ $(AR) rcs libCxImage.a *.o
+clean:
+ rm *.o && mv libCxImage.a ../