diff options
author | Chris Xiong <chirs241097@gmail.com> | 2016-10-28 16:35:21 +0800 |
---|---|---|
committer | Chris Xiong <chirs241097@gmail.com> | 2016-10-28 16:35:21 +0800 |
commit | 0900cc583cc5e51b7c6b378de93cca29e11cb0e9 (patch) | |
tree | 47625b45ad1d4d63eaa59b2414f89fbfda33d035 /smelt/glfw/makefile | |
parent | 6206029f2d0af3ef76a0a61ef024ca758307ba19 (diff) | |
download | SMELT-0900cc583cc5e51b7c6b378de93cca29e11cb0e9.tar.xz |
Add the GLFW port, still using OpenGL 2.1 though.
And a more detailed readme.
Diffstat (limited to 'smelt/glfw/makefile')
-rw-r--r-- | smelt/glfw/makefile | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/smelt/glfw/makefile b/smelt/glfw/makefile new file mode 100644 index 0000000..e325ff3 --- /dev/null +++ b/smelt/glfw/makefile @@ -0,0 +1,27 @@ +CC= g++ +CXXFLAGS= -c -g -O2 -std=c++11 -Wall -I../include -D_LINUX -fPIC +TARGET= libsmelt.a + +all: objects-normal archive-normal + +dumb: CXXFLAGS += -DENABLE_DUMB +dumb: TARGET= libsmelt-dumb.a +dumb: all + +objects-normal: gfx inp sfx sys + +gfx: + $(CC) gfx_glfw.cpp $(CXXFLAGS) +sfx: + $(CC) sfx_oal.cpp $(CXXFLAGS) +inp: + $(CC) inp_glfw.cpp $(CXXFLAGS) +sys: + $(CC) sys_glfw.cpp $(CXXFLAGS) +archive-normal: + $(AR) rcs $(TARGET) gfx_glfw.o sfx_oal.o inp_glfw.o sys_glfw.o + +clean: + rm -f *.o +clean-all: clean + rm *.a |