"Fossies" - the Fresh Open Source Software Archive

Member "socat-1.7.3.2/Config/Makefile.MacOSX-10-5" (6 Jan 2017, 6364 Bytes) of package /linux/privat/socat-1.7.3.2.tar.gz:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file. See also the latest Fossies "Diffs" side-by-side code changes report for "Makefile.MacOSX-10-5": 1.7.3.1_vs_1.7.3.2.

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