Removed common/ from the build process, and the DEBUG flag

The common/ directory is empty, only containing more directories to be
built, and the DEBUG flag isn't being used.
This commit is contained in:
Kayne Ruse
2014-05-26 02:21:56 +10:00
parent c2eb08bd5e
commit a47e76845f
11 changed files with 21 additions and 52 deletions
+1 -32
View File
@@ -1,22 +1,4 @@
#config
INCLUDES+=. ..
LIBS+=
CXXFLAGS+=-std=c++11 -DDEBUG $(addprefix -I,$(INCLUDES))
#source
CXXSRC=$(wildcard *.cpp)
#objects
OBJDIR=obj
OBJ+=$(addprefix $(OBJDIR)/,$(CXXSRC:.cpp=.o))
#output
OUTDIR=../..
OUT=$(addprefix $(OUTDIR)/,libcommon.a)
#targets
all: $(OBJ) $(OUT)
ar -crs $(OUT) $(OBJ)
all:
$(MAKE) -C gameplay
$(MAKE) -C graphics
$(MAKE) -C map
@@ -25,19 +7,6 @@ all: $(OBJ) $(OUT)
$(MAKE) -C ui
$(MAKE) -C utilities
$(OBJ): | $(OBJDIR)
$(OUT): | $(OUTDIR)
$(OBJDIR):
mkdir $(OBJDIR)
$(OUTDIR):
mkdir $(OUTDIR)
$(OBJDIR)/%.o: %.cpp
$(CXX) $(CXXFLAGS) -c -o $@ $<
clean:
$(RM) *.o *.a *.exe