diff options
author | Clyne Sullivan <tullivan99@gmail.com> | 2016-03-02 10:14:01 -0500 |
---|---|---|
committer | Clyne Sullivan <tullivan99@gmail.com> | 2016-03-02 10:14:01 -0500 |
commit | e879b257b9512816f2ff579a7444fe600a74ed91 (patch) | |
tree | 0db242513a0851e0985f7d55ae4cd75e14a91b4e /src/Makefile | |
parent | 47f8aa5b312a5ef671e83322bcbe201a034f84c0 (diff) |
better make system
Diffstat (limited to 'src/Makefile')
-rw-r--r-- | src/Makefile | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/src/Makefile b/src/Makefile deleted file mode 100644 index 91743ef..0000000 --- a/src/Makefile +++ /dev/null @@ -1,18 +0,0 @@ -LIBS = -lpthread -lGL -lSDL2 -lSDL2_image -lSDL2_mixer -lfreetype - -FLAGS = -std=c++11 -I../include -I../include/freetype2 -Wall -Wextra -Werror - -OUT = `echo "" $$(ls -c $(wildcard *.cpp)) | sed s/.cpp/.o/g | sed 's/ / ..\/out\//g'` -OUT64 = `echo "" $$(ls -c $(wildcard *.cpp)) | sed s/.cpp/.o/g | sed 's/ / ..\/out64\//g'` - -../out/%.o: - @echo " CXX " $(shell echo $@ | sed 's/..\/out\///g' | sed 's/\.o/\.cpp/') - @g++ $(FLAGS) -m32 -o $@ -c $(shell echo $@ | sed 's/..\/out\///g' | sed 's/\.o/\.cpp/') $(LIBS) -lSDL2main - -../out64/%.o: - @echo " CXX " $(shell echo $@ | sed 's/..\/out64\///g' | sed 's/\.o/\.cpp/') - @g++ $(FLAGS) -m64 -o $@ -c $(shell echo $@ | sed 's/..\/out64\///g' | sed 's/\.o/\.cpp/') $(LIBS) - -all: $(shell echo $(OUT)) - -64: $(shell echo $(OUT64)) |