2000-11-01 23:11:19 +00:00
|
|
|
# Edit these to suit
|
|
|
|
#
|
|
|
|
# Oh yeah, and please read the README too.
|
|
|
|
|
|
|
|
|
|
|
|
SSL_HOMEDIR=../..
|
|
|
|
SSL_INCLUDEDIR=$(SSL_HOMEDIR)/include
|
|
|
|
SSL_LIBDIR=$(SSL_HOMEDIR)
|
|
|
|
|
|
|
|
RM=rm -f
|
|
|
|
CC=gcc
|
|
|
|
DEBUG_FLAGS=-g -ggdb3 -Wall -Wshadow
|
|
|
|
INCLUDE_FLAGS=-I$(SSL_INCLUDEDIR)
|
2001-07-23 19:03:48 +00:00
|
|
|
CFLAGS=$(DEBUG_FLAGS) $(INCLUDE_FLAGS) -DNO_CONFIG_H
|
2000-11-01 23:11:19 +00:00
|
|
|
COMPILE=$(CC) $(CFLAGS) -c
|
|
|
|
|
|
|
|
# Edit, particularly the "-ldl" if not building with "dlfcn" support
|
|
|
|
LINK_FLAGS=-L$(SSL_LIBDIR) -lssl -lcrypto -ldl
|
|
|
|
|
2001-07-23 19:03:48 +00:00
|
|
|
SRCS=buffer.c cb.c ip.c sm.c tunala.c breakage.c
|
|
|
|
OBJS=buffer.o cb.o ip.o sm.o tunala.o breakage.o
|
2000-11-01 23:11:19 +00:00
|
|
|
|
|
|
|
TARGETS=tunala
|
|
|
|
|
|
|
|
default: $(TARGETS)
|
|
|
|
|
|
|
|
clean:
|
|
|
|
$(RM) $(OBJS) $(TARGETS) *.bak core
|
|
|
|
|
|
|
|
.c.o:
|
|
|
|
$(COMPILE) $<
|
|
|
|
|
|
|
|
tunala: $(OBJS)
|
|
|
|
$(CC) -o tunala $(OBJS) $(LINK_FLAGS)
|
|
|
|
|
|
|
|
# Extra dependencies, should really use makedepend
|
|
|
|
buffer.o: buffer.c tunala.h
|
2000-11-28 23:27:23 +00:00
|
|
|
cb.o: cb.c tunala.h
|
2000-11-01 23:11:19 +00:00
|
|
|
ip.o: ip.c tunala.h
|
|
|
|
sm.o: sm.c tunala.h
|
|
|
|
tunala.o: tunala.c tunala.h
|