This is a demo that performs SSL tunneling (client and/or server) and is
[openssl.git] / demos / tunala / Makefile
1 # Edit these to suit
2 #
3 # Oh yeah, and please read the README too.
4
5
6 SSL_HOMEDIR=../..
7 SSL_INCLUDEDIR=$(SSL_HOMEDIR)/include
8 SSL_LIBDIR=$(SSL_HOMEDIR)
9
10 RM=rm -f
11 CC=gcc
12 DEBUG_FLAGS=-g -ggdb3 -Wall -Wshadow
13 INCLUDE_FLAGS=-I$(SSL_INCLUDEDIR)
14 CFLAGS=$(DEBUG_FLAGS) $(INCLUDE_FLAGS)
15 COMPILE=$(CC) $(CFLAGS) -c
16
17 # Edit, particularly the "-ldl" if not building with "dlfcn" support
18 LINK_FLAGS=-L$(SSL_LIBDIR) -lssl -lcrypto -ldl
19
20 SRCS=buffer.c ip.c sm.c tunala.c
21 OBJS=buffer.o ip.o sm.o tunala.o
22
23 TARGETS=tunala
24
25 default: $(TARGETS)
26
27 clean:
28         $(RM) $(OBJS) $(TARGETS) *.bak core
29
30 .c.o:
31         $(COMPILE) $<
32
33 tunala: $(OBJS)
34         $(CC) -o tunala $(OBJS) $(LINK_FLAGS)
35
36 # Extra dependencies, should really use makedepend
37 buffer.o: buffer.c tunala.h
38 ip.o: ip.c tunala.h
39 sm.o: sm.c tunala.h
40 tunala.o: tunala.c tunala.h