Makefile for Linux and finished fixing case issues with includes

This commit is contained in:
Simon Robertshaw 2012-01-20 22:19:45 +00:00
parent 4949a5eac0
commit 6a331fdaf8
3 changed files with 5 additions and 5 deletions

View File

@ -30,7 +30,7 @@ build/obj/powder.exe/%.o: src/%.cpp $(HEADERS)
$(CPPC) -c $(CFLAGS) $(OFLAGS) -o $@ $< -ggdb
buildpaths-powder.exe:
$(shell mkdir build/obj/powder.exe/)
$(shell mkdir $(sort $(dir $(OBJS))))
$(shell mkdir $(sort $(dir $(patsubst build/obj/%.o,build/obj/powder.exe/%.o,$(OBJS)))))
build/powder: buildpaths-powder $(patsubst build/obj/%.o,build/obj/powder/%.o,$(OBJS))
$(CPPC) $(CFLAGS) $(OFLAGS) $(LDFLAGS) $(patsubst build/obj/%.o,build/obj/powder/%.o,$(OBJS)) $(LFLAGS) -o $@ -ggdb
@ -38,8 +38,8 @@ build/obj/powder/%.o: src/%.cpp $(HEADERS)
$(CPPC) -c $(CFLAGS) $(OFLAGS) -o $@ $< -ggdb
buildpaths-powder:
$(shell mkdir build/obj/powder/)
$(shell mkdir $(sort $(dir $(OBJS))))
$(shell mkdir $(sort $(dir $(patsubst build/obj/%.o,build/obj/powder/%.o,$(OBJS)))))
clean:
rm -r build/obj/*
rm build/*.exe
rm build/*.exe

File diff suppressed because one or more lines are too long

View File

@ -28,7 +28,7 @@
//#include "ElementGraphics.h"
#define INCLUDE_FONTDATA
#include "font.h"
#include "misc.h"
#include "Misc.h"
#include "hmap.h"
//unsigned cmode = CM_FIRE;