blob: aacef575c2349860915b6724aaef5fba0becdca7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
LIBS = -lGL -lSDL2 -lSDL2_image -lSDL2_mixer -lfreetype
FLAGS = -std=c++11 -I../include -I../include/freetype2
OUT = `echo "" $$(ls -c $(wildcard *.cpp)) | sed s/.cpp/.o/g | sed 's/ / ..\/out\//g'`
../out/%.o:
@echo " CXX " $(shell echo $@ | sed 's/..\/out\///g' | sed 's/\.o/\.cpp/')
@g++ $(FLAGS) -o $@ -c $(shell echo $@ | sed 's/..\/out\///g' | sed 's/\.o/\.cpp/') $(LIBS)
all: $(shell echo $(OUT))
|