blob: 3a8703bc1a2acd40f9ea82ad2ecc753e6662221a [file] [log] [blame]
Damien Miller598bbc22005-12-31 16:33:36 +11001# $Id: Makefile.in,v 1.37 2005/12/31 05:33:37 djm Exp $
Damien Millere9cf3572001-02-09 12:55:35 +11002
Ben Lindstrom3c06f6a2001-01-31 21:52:01 +00003sysconfdir=@sysconfdir@
4piddir=@piddir@
5srcdir=@srcdir@
6top_srcdir=@top_srcdir@
7
Ben Lindstrom2ffbbe62001-02-02 00:00:54 +00008VPATH=@srcdir@
Ben Lindstrom3c06f6a2001-01-31 21:52:01 +00009CC=@CC@
10LD=@LD@
11CFLAGS=@CFLAGS@
Ben Lindstrom9ae2bb62001-03-12 05:16:18 +000012CPPFLAGS=-I. -I.. -I$(srcdir) -I$(srcdir)/.. @CPPFLAGS@ @DEFS@
Ben Lindstrom3c06f6a2001-01-31 21:52:01 +000013LIBS=@LIBS@
14AR=@AR@
15RANLIB=@RANLIB@
16INSTALL=@INSTALL@
17LDFLAGS=-L. @LDFLAGS@
18
Darren Tucker81eb5d52005-06-01 21:39:33 +100019OPENBSD=base64.o basename.o bindresvport.o daemon.o dirname.o getcwd.o getgrouplist.o getopt.o getrrsetbyname.o glob.o inet_aton.o inet_ntoa.o inet_ntop.o mktemp.o readpassphrase.o realpath.o rresvport.o setenv.o setproctitle.o sigact.o strlcat.o strlcpy.o strmode.o strsep.o strtonum.o strtoll.o strtoul.o vis.o
Ben Lindstrom3c06f6a2001-01-31 21:52:01 +000020
Damien Miller57f39152005-11-24 19:58:19 +110021COMPAT=bsd-arc4random.o bsd-asprintf.o bsd-closefrom.o bsd-cray.o bsd-cygwin_util.o bsd-getpeereid.o bsd-misc.o bsd-nextstep.o bsd-openpty.o bsd-snprintf.o bsd-waitpid.o fake-rfc2553.o openssl-compat.o xmmap.o xcrypt.o
Ben Lindstrom3c06f6a2001-01-31 21:52:01 +000022
Damien Miller598bbc22005-12-31 16:33:36 +110023PORTS=port-irix.o port-aix.o port-uw.o port-tun.o
Ben Lindstromf095a852002-02-19 20:02:48 +000024
Ben Lindstrom40f41512001-02-08 18:05:17 +000025.c.o:
26 $(CC) $(CFLAGS) $(CPPFLAGS) -c $<
Ben Lindstrom3c06f6a2001-01-31 21:52:01 +000027
28all: libopenbsd-compat.a
29
Ben Lindstrom1c56a012001-02-03 21:58:12 +000030$(COMPAT): ../config.h
31$(OPENBSD): ../config.h
Ben Lindstromf095a852002-02-19 20:02:48 +000032$(PORTS): ../config.h
Ben Lindstrom3c06f6a2001-01-31 21:52:01 +000033
Ben Lindstromf095a852002-02-19 20:02:48 +000034libopenbsd-compat.a: $(COMPAT) $(OPENBSD) $(PORTS)
35 $(AR) rv $@ $(COMPAT) $(OPENBSD) $(PORTS)
Ben Lindstrom3c06f6a2001-01-31 21:52:01 +000036 $(RANLIB) $@
37
38clean:
39 rm -f *.o *.a core
40
41distclean: clean
42 rm -f Makefile *~