nexmon – Blame information for rev 1
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
1 | office | 1 | # source: Makefile.in |
2 | # Copyright Gerhard Rieger |
||
3 | # Published under the GNU General Public License V.2, see file COPYING |
||
4 | |||
5 | # note: @...@ forms are filled in by configure script |
||
6 | |||
7 | SHELL = /bin/sh |
||
8 | AR = @AR@ |
||
9 | RANLIB = @RANLIB@ |
||
10 | |||
11 | .SUFFIXES: .c .o |
||
12 | |||
13 | prefix = @prefix@ |
||
14 | exec_prefix = @exec_prefix@ |
||
15 | |||
16 | BINDEST = @bindir@ |
||
17 | |||
18 | datarootdir = @datarootdir@ |
||
19 | MANDEST = @mandir@ |
||
20 | |||
21 | srcdir = @srcdir@ |
||
22 | VPATH = @srcdir@ |
||
23 | |||
24 | CC = @CC@ |
||
25 | #CCOPTS = $(CCOPT) -Wall -Wno-parentheses |
||
26 | CCOPTS = $(CCOPT) -pthread |
||
27 | |||
28 | SYSDEFS = @SYSDEFS@ |
||
29 | CPPFLAGS = -I. @CPPFLAGS@ |
||
30 | #0 INCLS = -I. @V_INCL@ |
||
31 | DEFS = @DEFS@ |
||
32 | LIBS = @LIBS@ |
||
33 | LDFLAGS = @LDFLAGS@ |
||
34 | |||
35 | INSTALL = @INSTALL@ |
||
36 | |||
37 | #OBJ = $(CSRC:.c=.o) $(GENSRC:.c=.o) @LIBOBJS@ |
||
38 | |||
39 | |||
40 | #0 CFLAGS = @CFLAGS@ $(CCOPTS) $(DEFS) $(INCLS) |
||
41 | CFLAGS = @CFLAGS@ $(CCOPTS) $(DEFS) $(CPPFLAGS) |
||
42 | CLIBS = $(LIBS) -lpthread |
||
43 | #CLIBS = $(LIBS) -lm -lefence |
||
44 | XIOSRCS = xioinitialize.c xiohelp.c xioparam.c xiodiag.c xioopen.c xioopts.c \ |
||
45 | xiosignal.c xiosigchld.c xioread.c xiowrite.c xiotransfer.c xioengine.c \ |
||
46 | xiolayer.c xioshutdown.c xioclose.c xioexit.c xiosocketpair.c \ |
||
47 | xio-process.c xio-fd.c xio-fdnum.c xio-stdio.c xio-pipe.c \ |
||
48 | xio-gopen.c xio-creat.c xio-file.c xio-named.c \ |
||
49 | xio-socket.c xio-interface.c xio-listen.c xio-unix.c \ |
||
50 | xio-ip.c xio-ip4.c xio-ip6.c xio-ipapp.c xio-tcp.c \ |
||
51 | xio-sctp.c xio-rawip.c \ |
||
52 | xio-socks.c xio-socks5.c xio-proxy.c xio-udp.c \ |
||
53 | xio-progcall.c xio-exec.c xio-system.c xio-termios.c xio-readline.c \ |
||
54 | xio-pty.c xio-openssl.c xio-streams.c\ |
||
55 | xio-ascii.c xiolockfile.c xio-tcpwrap.c xio-ext2.c xio-tun.c \ |
||
56 | xio-nop.c xio-test.c |
||
57 | XIOOBJS = $(XIOSRCS:.c=.o) |
||
58 | UTLSRCS = error.c dalan.c procan.c procan-cdefs.c hostan.c fdname.c sysutils.c utils.c nestlex.c vsnprintf_r.c snprinterr.c @FILAN@ @SYCLS@ @SSLCLS@ |
||
59 | UTLOBJS = $(UTLSRCS:.c=.o) |
||
60 | CFILES = $(XIOSRCS) $(UTLSRCS) socat.c procan_main.c filan_main.c |
||
61 | OFILES = $(CFILES:.c=.o) |
||
62 | PROGS = socat procan filan |
||
63 | |||
64 | HFILES = sycls.h sslcls.h error.h dalan.h procan.h filan.h hostan.h sysincludes.h xio.h xioopen.h sysutils.h utils.h nestlex.h vsnprintf_r.h snprinterr.h compat.h \ |
||
65 | xioconfig.h mytypes.h xioopts.h xiodiag.h xiohelp.h xiosysincludes.h \ |
||
66 | xiomodes.h xiolayer.h xio-process.h xio-fd.h xio-fdnum.h xio-stdio.h \ |
||
67 | xio-named.h xio-file.h xio-creat.h xio-gopen.h xio-pipe.h \ |
||
68 | xio-socket.h xio-interface.h xio-listen.h xio-unix.h \ |
||
69 | xio-ip.h xio-ip4.h xio-ip6.h xio-rawip.h \ |
||
70 | xio-ipapp.h xio-tcp.h xio-udp.h xio-sctp.h \ |
||
71 | xio-socks.h xio-socks5.h xio-proxy.h xio-progcall.h xio-exec.h \ |
||
72 | xio-system.h xio-termios.h xio-readline.h \ |
||
73 | xio-pty.h xio-openssl.h xio-streams.h \ |
||
74 | xio-ascii.h xiolockfile.h xio-tcpwrap.h xio-ext2.h xio-tun.h \ |
||
75 | xiosigchld.h xiostatic.h xio-nop.h xio-test.h |
||
76 | |||
77 | DOCFILES = README README.FIPS CHANGES FILES EXAMPLES PORTING SECURITY \ |
||
78 | DEVELOPMENT doc/socat.yo doc/socat.1 doc/socat.html doc/xio.help FAQ \ |
||
79 | BUGREPORTS COPYING COPYING.OpenSSL doc/dest-unreach.css \ |
||
80 | doc/socat-openssltunnel.html doc/socat-multicast.html \ |
||
81 | doc/socat-tun.html doc/socat-genericsocket.html \ |
||
82 | doc/socat-addresschain.html doc/socat-exec.html |
||
83 | SHFILES = daemon.sh mail.sh ftp.sh readline.sh |
||
84 | TESTFILES = test.sh socks4echo.sh proxyecho.sh gatherinfo.sh readline-test.sh \ |
||
85 | proxy.sh socks4a-echo.sh bin/cat2.sh bin/predialog.sh \ |
||
86 | bin/cat2.sh bin/predialog.sh |
||
87 | OSFILES = Config/Makefile.Linux-2-6-24 Config/config.Linux-2-6-24.h \ |
||
88 | Config/Makefile.SunOS-5-10 Config/config.SunOS-5-10.h \ |
||
89 | Config/Makefile.FreeBSD-6-1 Config/config.FreeBSD-6-1.h \ |
||
90 | Config/Makefile.NetBSD-5-1 Config/config.NetBSD-5-1.h \ |
||
91 | Config/Makefile.OpenBSD-4-3 Config/config.OpenBSD-4-3.h \ |
||
92 | Config/Makefile.AIX-5-3 Config/config.AIX-5-3.h \ |
||
93 | Config/Makefile.Cygwin-1-5-25 Config/config.Cygwin-1-5-25.h \ |
||
94 | Config/Makefile.MacOSX-10-5 Config/config.MacOSX-10-5.h |
||
95 | |||
96 | all: progs |
||
97 | |||
98 | scmclean: gitclean |
||
99 | |||
100 | gitclean: distclean docclean |
||
101 | rm -f Makefile.bak configure |
||
102 | |||
103 | doc: doc/socat.1 doc/socat.html |
||
104 | |||
105 | docclean: |
||
106 | rm -f doc/socat.1 doc/socat.html |
||
107 | |||
108 | doc/socat.1: doc/socat.yo |
||
109 | yodl2man -o $@ $+ |
||
110 | |||
111 | doc/socat.html: doc/socat.yo |
||
112 | cd doc; yodl2html -o socat.html socat.yo; cd .. |
||
113 | |||
114 | progs: $(PROGS) |
||
115 | |||
116 | depend: $(CFILES) $(HFILES) |
||
117 | makedepend $(SYSDEFS) $(CFILES) |
||
118 | |||
119 | socat: socat.o libxio.a |
||
120 | $(CC) $(CFLAGS) $(LDFLAGS) -o $@ socat.o libxio.a $(CLIBS) |
||
121 | |||
122 | PROCAN_OBJS=procan_main.o procan.o procan-cdefs.o hostan.o error.o sycls.o sysutils.o utils.o vsnprintf_r.o snprinterr.o |
||
123 | procan: $(PROCAN_OBJS) |
||
124 | $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(PROCAN_OBJS) $(CLIBS) |
||
125 | |||
126 | filan: filan_main.o filan.o fdname.o error.o sycls.o sysutils.o utils.o |
||
127 | $(CC) $(CFLAGS) $(LDFLAGS) -o $@ filan_main.o filan.o fdname.o error.o sycls.o sysutils.o utils.o vsnprintf_r.o snprinterr.o $(CLIBS) |
||
128 | |||
129 | libxio.a: $(XIOOBJS) $(UTLOBJS) |
||
130 | $(AR) r $@ $(XIOOBJS) $(UTLOBJS) |
||
131 | $(RANLIB) $@ |
||
132 | |||
133 | doc: doc/xio.help |
||
134 | # |
||
135 | |||
136 | strip: progs |
||
137 | strip $(PROGS) |
||
138 | |||
139 | install: progs |
||
140 | mkdir -p $(DESTDIR)$(BINDEST) |
||
141 | $(INSTALL) -m 755 socat $(DESTDIR)$(BINDEST) |
||
142 | $(INSTALL) -m 755 procan $(DESTDIR)$(BINDEST) |
||
143 | $(INSTALL) -m 755 filan $(DESTDIR)$(BINDEST) |
||
144 | |||
145 | uninstall: |
||
146 | rm -f $(DESTDIR)$(BINDEST)/socat |
||
147 | rm -f $(DESTDIR)$(BINDEST)/procan |
||
148 | rm -f $(DESTDIR)$(BINDEST)/filan |
||
149 | rm -f $(DESTDIR)$(MANDEST)/man1/socat.1 |
||
150 | |||
151 | # make a GNU-zipped tar ball of the source files |
||
152 | dist: socat.tar.gz socat.tar.bz2 |
||
153 | |||
154 | socat.tar.gz: socat.tar |
||
155 | gzip -9 <socat.tar >socat.tar.gz |
||
156 | |||
157 | socat.tar.bz2: socat.tar |
||
158 | bzip2 -9 <socat.tar >socat.tar.bz2 |
||
159 | |||
160 | VERSION = `sed 's/"//g' VERSION` |
||
161 | TARDIR = socat-$(VERSION) |
||
162 | socat.tar: configure.in configure Makefile.in config.h.in install-sh VERSION $(CFILES) $(HFILES) $(DOCFILES) $(SHFILES) $(OSFILES) $(TESTFILES) \ |
||
163 | configure.ac |
||
164 | if [ ! -d $(TARDIR) ]; then mkdir $(TARDIR); fi |
||
165 | tar cf - $+ |(cd $(TARDIR); tar xf -) |
||
166 | tar cvf socat.tar $(TARDIR) |
||
167 | rm -f $(TARDIR)/COPYING # write protected |
||
168 | rm -r $(TARDIR) |
||
169 | |||
170 | clean: |
||
171 | rm -f *.o libxio.a socat procan filan \ |
||
172 | socat.tar socat.tar.Z socat.tar.gz socat.tar.bz2 \ |
||
173 | socat.out compile.log test.log |
||
174 | |||
175 | # remove all files that are generated from the original socat distribution |
||
176 | # note that Makefile is also removed, so you have to start with ./configure |
||
177 | # again |
||
178 | distclean: clean |
||
179 | rm -f config.status config.cache config.log config.h Makefile |
||
180 | rm -rf autom4te.cache |
||
181 | |||
182 | info: socat |
||
183 | uname -a >socat.out |
||
184 | ./socat -V >>socat.out |
||
185 | ./socat -hh >>socat.out |
||
186 | |||
187 | # perform some tests on socat |
||
188 | test: progs |
||
189 | ./test.sh |
||
190 | |||
191 | cert: |
||
192 | # prepare critical files with correct permissions to avoid race cond |
||
193 | >cert.key |
||
194 | >cert.pem |
||
195 | chmod 600 cert.key cert.pem |
||
196 | # generate a private key |
||
197 | openssl genrsa -out cert.key 1024 |
||
198 | # generate a self signed cert |
||
199 | openssl req -new -key cert.key -x509 -days 3653 -out cert.crt |
||
200 | # ...enter fields |
||
201 | # generate the pem file |
||
202 | cat cert.key cert.crt >cert.pem |
||
203 | #echo use cert.pem on requestors side, i.e. with option cert=cert.pem |
||
204 | #echo use cert.crt on checkers side, i.e. with option cafile=cert.crt |