blob: 8021f42c48fd63422c968dd09b92f3fc689a0719 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
LIBS = -lGL -lSDL2_image -lSDL2_mixer
FLAGS = -std=c++11 -I../include -I../include/freetype2 -lSDL2main -lSDL2 -lfreetype
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))
|