X-Git-Url: http://git.mutantstargoat.com/user/nuclear/?a=blobdiff_plain;f=Makefile;h=459126dc36760f8c3afe8de595b10c9cbdd36a03;hb=33554a591c2639d20dc3ad94665ee09ae5d04a3d;hp=4292695aadaf77953f08ea4141b342ade6c82803;hpb=a80992973feb47adfc1214ad1a3f7fc34eb345c0;p=summerhack diff --git a/Makefile b/Makefile index 4292695..459126d 100644 --- a/Makefile +++ b/Makefile @@ -1,16 +1,16 @@ -src := src/sumhack.cpp src/events.cpp -bin := sumhack-thelab +src = src/sumhack.cpp src/events.cpp +bin = sumhack-thelab include src/parts/Makefile-part include src/sdlvf/Makefile-part -obj := $(src:.cpp=.o) $(csrc:.c=.o) +obj = $(src:.cpp=.o) $(csrc:.c=.o) -opt := -O1 -opt := -g -CXXFLAGS := -ansi -pedantic -Wall $(opt) -Isrc/3dengfx/src `src/3dengfx/3dengfx-config --cflags` -CFLAGS := -std=c89 -pedantic -Wall $(opt) `src/3dengfx/3dengfx-config --cflags` -libs := src/3dengfx/lib3dengfx.a `src/3dengfx/3dengfx-config --libs-no-3dengfx` -lGL -lvorbisfile +opt = -O1 +opt = -g +CXXFLAGS = -ansi -pedantic -Wall $(opt) -Isrc/3dengfx/src `src/3dengfx/3dengfx-config --cflags` +CFLAGS = -std=c89 -pedantic -Wall $(opt) `src/3dengfx/3dengfx-config --cflags` +libs = src/3dengfx/lib3dengfx.a `src/3dengfx/3dengfx-config --libs-no-3dengfx` -lGL -lvorbisfile $(bin): $(obj) src/3dengfx/lib3dengfx.a data/tex_list $(CXX) -o $@ $(obj) $(libs) @@ -22,7 +22,7 @@ src/3dengfx/lib3dengfx.a: data/tex_list: $(src) tools/find_textures >$@ -include $(obj:.o=.d) +-include $(obj:.o=.d) %.d: %.cpp @set -e; rm -f $@; $(CXX) -MM $(CXXFLAGS) $< > $@.$$$$; \