3
# Oh yeah, and please read the README too.
7
SSL_INCLUDEDIR=$(SSL_HOMEDIR)/include
8
SSL_LIBDIR=$(SSL_HOMEDIR)
12
DEBUG_FLAGS=-g -ggdb3 -Wall -Wshadow
13
INCLUDE_FLAGS=-I$(SSL_INCLUDEDIR)
14
CFLAGS=$(DEBUG_FLAGS) $(INCLUDE_FLAGS) -DNO_CONFIG_H
15
COMPILE=$(CC) $(CFLAGS) -c
17
# Edit, particularly the "-ldl" if not building with "dlfcn" support
18
LINK_FLAGS=-L$(SSL_LIBDIR) -lssl -lcrypto -ldl
20
SRCS=buffer.c cb.c ip.c sm.c tunala.c breakage.c
21
OBJS=buffer.o cb.o ip.o sm.o tunala.o breakage.o
28
$(RM) $(OBJS) $(TARGETS) *.bak core
34
$(CC) -o tunala $(OBJS) $(LINK_FLAGS)
36
# Extra dependencies, should really use makedepend
37
buffer.o: buffer.c tunala.h
41
tunala.o: tunala.c tunala.h