added 3dengfx into the repo, probably not the correct version for this
[summerhack] / src / 3dengfx / Makefile
1 PREFIX = /usr/local
2 dbg = -g
3 opt = -O1 -ffast-math -fomit-frame-pointer
4
5 inc_flags = -Isrc -Ilibs -I/usr/local/include
6 warn_flags = -Wall -Wno-sign-compare -Wno-strict-aliasing -Wno-char-subscripts
7
8 CXXFLAGS = $(opt) $(dbg) -ansi -pedantic $(warn_flags) -MMD $(inc_flags) \
9                    `sdl-config --cflags`
10 CFLAGS = $(opt) $(dbg) -std=c89 -pedantic $(warn_flags) -MMD $(inc_flags) \
11                  `sdl-config --cflags`
12
13 include src/3dengfx/makefile.part
14 include src/gfx/makefile.part
15 include src/n3dmath2/makefile.part
16 include src/dsys/makefile.part
17 include src/common/makefile.part
18 include src/fxwt/makefile.part
19 include src/sim/makefile.part
20 include libs/lib3ds/makefile.part
21
22 # get all the object files in one variable $(obj)
23 obj = $(3dengfx_obj) \
24           $(gfx_obj) \
25           $(n3dmath2_obj) \
26           $(dsys_obj) \
27           $(common_obj) \
28           $(fxwt_obj) \
29           $(sim_obj) \
30           $(lib3ds_obj)
31
32 lib3dengfx.a: $(obj)
33         $(AR) rcs $@ $(obj)
34
35 -include $(obj:.o=.d)
36
37 .PHONY: clean
38 clean:
39         $(RM) $(obj) lib3dengfx.a
40
41 .PHONY: cleandep
42 cleandep:
43         $(RM) $(obj:.o=.d)