X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;ds=sidebyside;f=src%2F3dengfx%2FMakefile;fp=src%2F3dengfx%2FMakefile;h=73b00ee78d46f27d43d816cc16397881d83519d3;hb=6e23259dbabaeb1711a2a5ca25b9cb421f693759;hp=0000000000000000000000000000000000000000;hpb=fe068fa879814784c45e0cb2e65dac489e8f5594;p=summerhack diff --git a/src/3dengfx/Makefile b/src/3dengfx/Makefile new file mode 100644 index 0000000..73b00ee --- /dev/null +++ b/src/3dengfx/Makefile @@ -0,0 +1,43 @@ +PREFIX = /usr/local +dbg = -g +opt = -O1 -ffast-math -fomit-frame-pointer + +inc_flags = -Isrc -Ilibs -I/usr/local/include +warn_flags = -Wall -Wno-sign-compare -Wno-strict-aliasing -Wno-char-subscripts + +CXXFLAGS = $(opt) $(dbg) -ansi -pedantic $(warn_flags) -MMD $(inc_flags) \ + `sdl-config --cflags` +CFLAGS = $(opt) $(dbg) -std=c89 -pedantic $(warn_flags) -MMD $(inc_flags) \ + `sdl-config --cflags` + +include src/3dengfx/makefile.part +include src/gfx/makefile.part +include src/n3dmath2/makefile.part +include src/dsys/makefile.part +include src/common/makefile.part +include src/fxwt/makefile.part +include src/sim/makefile.part +include libs/lib3ds/makefile.part + +# get all the object files in one variable $(obj) +obj = $(3dengfx_obj) \ + $(gfx_obj) \ + $(n3dmath2_obj) \ + $(dsys_obj) \ + $(common_obj) \ + $(fxwt_obj) \ + $(sim_obj) \ + $(lib3ds_obj) + +lib3dengfx.a: $(obj) + $(AR) rcs $@ $(obj) + +-include $(obj:.o=.d) + +.PHONY: clean +clean: + $(RM) $(obj) lib3dengfx.a + +.PHONY: cleandep +cleandep: + $(RM) $(obj:.o=.d)