git.ucc.asn.au
/
tpg
/
acess2.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Usermode/libnet - Set recursion bit (We want the server to do as much as possible...
[tpg/acess2.git]
/
Tools
/
NetTest_Runner
/
Makefile
1
2
OBJ := main.o net.o stack.o
3
OBJ += tcp.o
4
OBJ += ip.o arp.o
5
OBJ += link.o
6
OBJ += test_arp.o test_tcp.o
7
BIN := ../nettest_runner
8
9
CFLAGS := -Wall -std=c99 -g
10
CPPFLAGS := -Iinclude
11
LIBS :=
12
13
OBJ := $(OBJ:%=obj/%)
14
15
.PHONY: all clean
16
17
all: $(BIN)
18
19
clean:
20
$(RM) $(OBJ) $(BIN)
21
22
$(BIN): $(OBJ)
23
@echo [CC] -o $@
24
@$(CC) $(LINKFLAGS) -o $@ $(OBJ) $(LIBS)
25
26
obj/%.o: %.c Makefile
27
@mkdir -p $(dir $@)
28
@echo [CC] -c -o $@
29
@$(CC) $(CFLAGS) $(CPPFLAGS) -o $@ -c $< -MMD -MP
30
31
-include $(OBJ:%.o=%.d)
32
UCC
git Repository :: git.ucc.asn.au