More file split

This commit is contained in:
Ian Gulliver
2017-08-06 19:39:11 +00:00
parent 2fbb92c385
commit acaac65ac5
11 changed files with 340 additions and 305 deletions

View File

@@ -1,10 +1,15 @@
all: piphoto
piphoto: *.cc *.h Makefile
clang-3.9 -O3 -g -Weverything -Werror -Wno-c++98-compat -Wno-c++98-c++11-compat-pedantic --std=c++1z --stdlib=libc++ -o piphoto piphoto.cc -lc++ -lunwind -lpng
objects = piphoto.o coord.o util.o
piphoto: $(objects) Makefile
clang-3.9 -O3 -g -Weverything -Werror -Wno-c++98-compat -Wno-c++98-c++11-compat-pedantic --std=c++1z --stdlib=libc++ -o piphoto $(objects) -lc++ -lunwind -lpng
%.o: %.cc *.h Makefile
clang-3.9 -O3 -g -Weverything -Werror -Wno-c++98-compat -Wno-c++98-c++11-compat-pedantic --std=c++1z --stdlib=libc++ -c -o $@ $<
run: piphoto
./piphoto
clean:
rm -f piphoto
rm -f piphoto *.o