aboutsummaryrefslogtreecommitdiff
path: root/smelt/w32/makefile
diff options
context:
space:
mode:
authorGravatar Chris Xiong <chirs241097@gmail.com> 2016-05-22 23:51:06 +0800
committerGravatar Chris Xiong <chirs241097@gmail.com> 2016-05-22 23:51:06 +0800
commit2c5a0391c3299ccbb866a0dd33204dbeccfa2b95 (patch)
treebef068c68a50bad4735b23d524ab6e63b9d315e6 /smelt/w32/makefile
parent1c27cc906eb36d3182feb46981f60333bac1448b (diff)
downloadSMELT-2c5a0391c3299ccbb866a0dd33204dbeccfa2b95.tar.xz
Initial stubs for the Windows version.
The port is still incomplete and will be incomplete for a long time.
Diffstat (limited to 'smelt/w32/makefile')
-rw-r--r--smelt/w32/makefile29
1 files changed, 29 insertions, 0 deletions
diff --git a/smelt/w32/makefile b/smelt/w32/makefile
new file mode 100644
index 0000000..c68bb77
--- /dev/null
+++ b/smelt/w32/makefile
@@ -0,0 +1,29 @@
+CC= i686-w64-mingw32-g++
+CXXFLAGS= -c -g -O2 -std=c++11 -Wall -I../include -D_WIN32 -fPIC
+
+all: objects-normal archive-normal
+
+dumb: objects-dumb archive-dumb
+
+objects-normal: gfx inp sfx sys
+
+objects-dumb: gfx inp sfx-dumb sys
+
+gfx:
+ $(CC) gfx_d3d.cpp $(CXXFLAGS)
+sfx:
+ $(CC) sfx_w32.cpp $(CXXFLAGS)
+sfx-dumb:
+ $(CC) sfx_dumb.cpp $(CXXFLAGS)
+inp:
+ $(CC) inp_w32.cpp $(CXXFLAGS)
+sys:
+ $(CC) sys_w32.cpp $(CXXFLAGS)
+archive-normal:
+ $(AR) rcs libsmelt.a gfx_d3d.o sfx_w32.o inp_w32.o sys_w32.o
+archive-dumb:
+ $(AR) rcs libsmelt-dumb.a gfx_d3d.o sfx_dumb.o inp_w32.o sys_w32.o
+clean:
+ rm -f *.o
+clean-all: clean
+ rm *.a \ No newline at end of file