Revert "Revert "and added files""
[bcm963xx.git] / userapps / opensource / openssl / 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) -DNO_CONFIG_H
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 cb.c ip.c sm.c tunala.c breakage.c
21 OBJS=buffer.o cb.o ip.o sm.o tunala.o breakage.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 cb.o: cb.c tunala.h
39 ip.o: ip.c tunala.h
40 sm.o: sm.c tunala.h
41 tunala.o: tunala.c tunala.h