git.ucc.asn.au
/
ipdf
/
code.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Tester to compare custom Real to IEEE float
[ipdf/code.git]
/
src
/
Makefile
diff --git
a/src/Makefile
b/src/Makefile
index
3e8d8a0
..
6d7f100
100644
(file)
--- a/
src/Makefile
+++ b/
src/Makefile
@@
-1,10
+1,11
@@
#Makefile
CXX = g++ -std=gnu++0x -Wall -Werror -Wshadow -pedantic -g
#Makefile
CXX = g++ -std=gnu++0x -Wall -Werror -Wshadow -pedantic -g
-OBJ = log.o tests/saveload.o document.o view.o screen.o
+MAIN = main.o
+OBJ = log.o document.o view.o screen.o
LIB = `sdl2-config --libs` -lGL
OBJPATHS = $(OBJ:%=../obj/%)
DEPS := $(OBJPATHS:%.o=%.d)
LIB = `sdl2-config --libs` -lGL
OBJPATHS = $(OBJ:%=../obj/%)
DEPS := $(OBJPATHS:%.o=%.d)
-CFLAGS += `sdl2-config --cflags`
+CFLAGS += `sdl2-config --cflags`
-I`pwd`
LINKOBJ = $(OBJPATHS)
LINKOBJ = $(OBJPATHS)
@@
-14,9
+15,16
@@
BIN = ../bin/ipdf
all : $(BIN)
all : $(BIN)
-$(BIN) : $(LINKOBJ)
+tests/% : tests/%.cpp ../obj/tests/%.o $(LINKOBJ)
+ $(CXX) -o
[email protected]
$(LINKOBJ) ../obj/
[email protected]
$(LIB)
+
+runtests : tests/runtests.sh
+ cd tests; ./runtests.sh
+
+
+$(BIN) : $(LINKOBJ) ../obj/$(MAIN)
@mkdir -p $(dir $@)
@mkdir -p $(dir $@)
- $(CXX) -o $(BIN) $(LINKOBJ) $(LIB)
+ $(CXX) -o $(BIN) $(LINKOBJ)
../obj/$(MAIN)
$(LIB)
../obj/%.o : %.cpp
@mkdir -p $(dir $@)
../obj/%.o : %.cpp
@mkdir -p $(dir $@)
@@
-24,14
+32,21
@@
$(BIN) : $(LINKOBJ)
-include $(DEPS)
-include $(DEPS)
+clean_bin :
+ $(RM) $(BIN)
+
clean :
clean :
- $(RM) $(BIN) $(DEPS) $(LINKOBJ)
+ $(RM) $(BIN) $(DEPS) $(LINKOBJ) ../obj/$(MAIN)
+ $(RM) tests/*~
+ $(RM) tests/*.test
+ $(RM) tests/*.out
+ $(RM) tests/*.err
+
-clean_full: #cleans up all backup files
- $(RM) $(BIN) $(DEPS) $(LINKOBJ)
+clean_full: clean
$(RM) *.*~
$(RM) *~
$(RM) *.*~
$(RM) *~
- $(RM) *.o
+
UCC
git Repository :: git.ucc.asn.au