#   libnet Makefile
#   route|daemon9 <route@infonexus.com>


CC          =   /usr/bin/gcc
CFLAGS      =   -O3 -funroll-loops -fomit-frame-pointer -pipe -m486 -Wall
OBJECTS     =   test1.o test2.o
DEFINES     =   -DLINUX -D__BSD_SOURCE
LIBS        =   -L../../lib/ -lnet

.c.o:
	$(CC) $(CFLAGS) $(DEFINES) -c $< -o $@

all: test1 test2

test1: $(OBJECTS)
	$(CC) test1.o $(LIBS) -o ./test1

test2: $(OBJECTS)
	$(CC) test2.o $(LIBS) -o ./test2

clean:
	rm -f core test1 test2 *.o

# EOF
