Makefile 378 Bytes
Newer Older
Jason Fong's avatar
Jason Fong committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
CC = gcc
CFLAGS  = -g -Wall

all:  nat_traversal

nat_traversal:  main.o nat_traversal.o nat_type.o 
	$(CC) $(CFLAGS) -o nat_traversal main.o nat_traversal.o nat_type.o

main.o:  main.c
	$(CC) $(CFLAGS) -c main.c

nat_traversal.o:  nat_traversal.c 
	$(CC) $(CFLAGS) -c nat_traversal.c

nat_type.o:  nat_type.c
	$(CC) $(CFLAGS) -c nat_type.c

clean: 
	$(RM) nat_traversal *.o *~