X-Git-Url: https://git.ucc.asn.au/?p=ipdf%2Fcode.git;a=blobdiff_plain;f=src%2FMakefile;h=00419329c586765d0427efb819334929905d32d8;hp=6dbb2e13d5533cac420c47034fdf6e880895c716;hb=00ef152dc3a065e37fe45c1cd8023d739f518b8e;hpb=f59f24dff392428d7219ba2d6be5e1e81c344ee0 diff --git a/src/Makefile b/src/Makefile index 6dbb2e1..0041932 100644 --- a/src/Makefile +++ b/src/Makefile @@ -1,7 +1,7 @@ #Makefile ARCH := $(shell uname -m) # TODO: stb_truetype doesn't compile with some of these warnings. -CXX = g++ -std=gnu++0x -g -Wall -Werror -Wshadow -pedantic +CXX = g++ -std=gnu++0x -g -Wall -Werror -Wshadow -pedantic -rdynamic MAIN = main.o OBJ = log.o real.o bezier.o document.o objectrenderer.o view.o screen.o vfpu.o graphicsbuffer.o framebuffer.o shaderprogram.o stb_truetype.o gl_core44.o LIB_x86_64 = ../contrib/lib/libSDL2-2.0.so.0 -lGL @@ -30,7 +30,7 @@ RM = rm -f BIN = ../bin/ipdf - +all : DEF = -DREAL=4 all : $(BIN) single : DEF = -DREAL=0 @@ -69,7 +69,7 @@ $(BIN) : $(LINKOBJ) ../obj/$(MAIN) -include $(DEPS) -../obj/%.o : %.cpp +../obj/%.o : %.cpp main.h @mkdir -p $(dir $@) $(CXX) $(CFLAGS) $(DEF) -c -MMD -o $@ $<