Initial import

This commit is contained in:
2014-11-14 14:16:52 +01:00
commit 0be3e0a50e
3 changed files with 509 additions and 0 deletions

20
Makefile Normal file
View File

@@ -0,0 +1,20 @@
CXX=g++
CXXOPTS=-Og -ggdb -Wall -Wextra -pedantic -std=c++11
LDOPTS=-flto
LIBS=-lGL -lSDL2
CXXSRCS=main.cc
OBJS=$(addprefix objs/,$(CXXSRCS:.cc=.o))
objs/%.o: %.cc
$(CXX) $(CXXOPTS) -c -MMD -MP -o $@ $<
@cp objs/$*.d objs/$*.P; rm -f objs/$*.d
oglpg: $(OBJS)
$(CXX) $(CXXOPTS) $(LDOPTS) -o $@ $(OBJS) $(LIBS)
clean:
rm -f oglpg $(OBJS) $(addprefix objs/,$(CXXSRCS:.cc=.P))
.PHONY: clean
-include $(addprefix objs/,$(CXXSRCS:.cc=.P))