Debian Codegraph @

src/os2.mak.in

raw
1 prefix=.
2 DEFS = -DPACKAGE_NAME=\"stunnel\" \
3 -DPACKAGE_TARNAME=\"stunnel\" \
4 -DPACKAGE_VERSION=\"@PACKAGE_VERSION@\" \
5 -DPACKAGE_STRING=\"stunnel\ @PACKAGE_VERSION@\" \
6 -DPACKAGE_BUGREPORT=\"\" \
7 -DPACKAGE=\"stunnel\" \
8 -DVERSION=\"@PACKAGE_VERSION@\" \
9 -DSTDC_HEADERS=1 \
10 -DHAVE_SYS_TYPES_H=1 \
11 -DHAVE_SYS_STAT_H=1 \
12 -DHAVE_STDLIB_H=1 \
13 -DHAVE_STRING_H=1 \
14 -DHAVE_MEMORY_H=1 \
15 -DHAVE_STRINGS_H=1 \
16 -DHAVE_UNISTD_H=1 \
17 -DSSLDIR=\"/usr\" \
18 -DHOST=\"i386-pc-os2-emx\" \
19 -DHAVE_LIBSOCKET=1 \
20 -DHAVE_GRP_H=1 \
21 -DHAVE_UNISTD_H=1 \
22 -DHAVE_SYS_SELECT_H=1 \
23 -DHAVE_SYS_IOCTL_H=1 \
24 -DHAVE_SYS_RESOURCE_H=1 \
25 -DHAVE_SNPRINTF=1 \
26 -DHAVE_VSNPRINTF=1 \
27 -DHAVE_WAITPID=1 \
28 -DHAVE_SYSCONF=1 \
29 -DHAVE_ENDHOSTENT=1 \
30 -DUSE_OS2=1 \
31 -DSIZEOF_UNSIGNED_CHAR=1 \
32 -DSIZEOF_UNSIGNED_SHORT=2 \
33 -DSIZEOF_UNSIGNED_INT=4 \
34 -DSIZEOF_UNSIGNED_LONG=4 \
35 -DLIBDIR=\"$(prefix)/lib\" \
36 -DCONFDIR=\"$(prefix)/etc\"
37
38 CC = gcc
39 .SUFFIXES = .c .o
40 OPENSSLDIR = u:/extras
41 #SYSLOGDIR = /unixos2/workdir/syslog
42 INCLUDES = -I$(OPENSSLDIR)/outinc
43 LIBS = -lsocket -L$(OPENSSLDIR)/out -lssl -lcrypto -lz -lsyslog
44 OBJS = file.o client.o log.o options.o protocol.o network.o ssl.o ctx.o verify.o ocsp.o sthreads.o stunnel.o pty.o resolver.o str.o tls.o fd.o dhparam.o cron.o
45 LIBDIR = .
46 CFLAGS = -O2 -Wall -Wshadow -Wcast-align -Wpointer-arith
47
48 all: stunnel.exe
49
50 stunnel.exe: $(OBJS)
51 $(CC) -Zmap $(CFLAGS) -o $@ $(OBJS) $(LIBS)
52
53 .c.o:
54 $(CC) $(CFLAGS) $(DEFS) $(INCLUDES) -o $@ -c $<
55
56 client.o: client.c common.h prototypes.h
57 #env.o: env.c common.h prototypes.h
58 #gui.o: gui.c common.h prototypes.h
59 file.o: file.c common.h prototypes.h
60 network.o: network.c common.h prototypes.h
61 options.o: options.c common.h prototypes.h
62 protocol.o: protocol.c common.h prototypes.h
63 pty.o: pty.c common.h prototypes.h
64 ssl.o: ssl.c common.h prototypes.h
65 ctx.o: ctx.c common.h prototypes.h
66 verify.o: verify.c common.h prototypes.h
67 ocsp.o: ocsp.c common.h prototypes.h
68 sthreads.o: sthreads.c common.h prototypes.h
69 stunnel.o: stunnel.c common.h prototypes.h
70 resolver.o: resolver.c common.h prototypes.h
71 str.o: str.c common.h prototypes.h
72 tls.o: tls.c common.h prototypes.h
73 fd.o: fd.c common.h prototypes.h
74 dhparam.o: dhparam.c common.h prototypes.h
75 cron.o: cron.c common.h prototypes.h
76
77 clean:
78 rm -f *.o *.exe