Restructured the common/ directory, and simplified the build process

This commit is contained in:
Kayne Ruse
2014-05-26 02:08:07 +10:00
parent 7b76e07231
commit c2eb08bd5e
23 changed files with 88 additions and 67 deletions
+1 -7
View File
@@ -1,17 +1,14 @@
#config
INCLUDES+=. .. ../map
INCLUDES+=. .. ../map ../utilities
LIBS+=
CXXFLAGS+=-std=c++11 -DDEBUG $(addprefix -I,$(INCLUDES))
CFLAGS+=-DDEBUG $(addprefix -I,$(INCLUDES))
#source
CXXSRC=$(wildcard *.cpp)
CSRC=$(wildcard *.c)
#objects
OBJDIR=obj
OBJ+=$(addprefix $(OBJDIR)/,$(CXXSRC:.cpp=.o))
OBJ+=$(addprefix $(OBJDIR)/,$(CSRC:.c=.o))
#output
OUTDIR=../..
@@ -34,9 +31,6 @@ $(OUTDIR):
$(OBJDIR)/%.o: %.cpp
$(CXX) $(CXXFLAGS) -c -o $@ $<
$(OBJDIR)/%.o: %.c
$(CC) $(CFLAGS) -c -o $@ $<
clean:
$(RM) *.o *.a *.exe