projects
/
TDDC76_proj.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ad9d2ee
)
Update makefile
author
Nils Forssén
<nilfo359@student.liu.se>
Thu, 9 Nov 2023 15:59:28 +0000
(16:59 +0100)
committer
Nils Forssén
<nilfo359@student.liu.se>
Thu, 9 Nov 2023 15:59:28 +0000
(16:59 +0100)
Makefile
patch
|
blob
|
history
diff --git
a/Makefile
b/Makefile
index 799827bf0b04c4b9ca5c3b65da545b24bdfcd8b1..bd5e4089bf2374fa9e5cb22f331376147031561c 100644
(file)
--- a/
Makefile
+++ b/
Makefile
@@
-8,6
+8,7
@@
EXE := $(EXEDIR)/game.out
TEST := $(EXEDIR)/test.out
SRC := $(shell find src -type f -name '[^_]*.cc')
+SRC_H := $(shell find src -type f -name '[^_]*.h')
OBJECTS := $(addprefix $(OBJDIR)/, $(SRC:src/%.cc=%.o) )
vpath %.cc src
@@
-32,7
+33,7
@@
game-target: $(OBJDIR)/_main.o $(OBJECTS)
test-target: $(OBJDIR)/_test.o $(OBJECTS)
$(CC) $(LDFLAGS) $^ -o $(TEST) $(LDFLAGS)
-$(OBJDIR)/%.o: %.cc
+$(OBJDIR)/%.o: %.cc
$(SRC_H)
$(CC) $(CCFLAGS) -c -o $@ $<
run: