summaryrefslogtreecommitdiff
path: root/daemon/rfcnb/x_Makefile
blob: 97a01bebdc4661def67a00123abdbe7ec46c41d5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
# Find the LDFLAGS entry for your system type and uncomment it ...

CC = gcc

#CFLAGS = -g -DRFCNB_DEBUG
# Uncomment the above and recomment the below if you want debugging 
CFLAGS = -g

#CFLAGS = -g -DRFCNB_DEBUG -DRFCNB_PRINT_DATA
# Different LDFLAGS for different systems:
# ULTRIX and Digital UNIX (OSF/1)
# LDFALGS =
#
# Linux   
# LDFLAGS = 
#
# Solaris and maybe SunOS???
# LDFLAGS = -lsocket -lnsl
#
# HP-UX ???
# LDFLAGS = ???

INCLUDES = rfcnb.h rfcnb-priv.h rfcnb-util.h rfcnb-io.h

.SUFFIXES: .c .o .h

all: test_rfcnb

.c.o: $(INCLUDES)
	@echo Compiling $*.c
	@$(CC) $(CFLAGS) -c $*.c

test_rfcnb:	test_rfcnb.o session.o rfcnb-util.o rfcnb-io.o
	$(CC) $(CFLAGS) $(LDFLAGS) -o test_rfcnb test_rfcnb.o session.o rfcnb-util.o rfcnb-io.o

clean:
	rm *.o test_rfcnb