Commit d03fd294 authored by Mathieu Valois's avatar Mathieu Valois
Browse files

one makefile to rule them all

parent a5981b35
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -4,9 +4,12 @@ LDFLAGS = -lpthread
SRC	 = src
INC	 = include
BIN  = cstatsgen
BINGUI = cstatsgen-gui

.PHONY = clean

all: $(BIN) $(BINGUI)

$(BIN): main.o statsgen.o
	$(CXX) $^ -o $@ $(LDFLAGS)

@@ -18,3 +21,7 @@ statsgen.o: $(SRC)/core/statsgen.cpp $(INC)/statsgen.h $(INC)/utils.h

clean:
	-rm -f *.o stats

$(BINGUI): statsgen.o
	qmake -o qmakefile
	make -f qmakefile