Damien Miller | 598bbc2 | 2005-12-31 16:33:36 +1100 | [diff] [blame] | 1 | # $Id: Makefile.in,v 1.37 2005/12/31 05:33:37 djm Exp $ |
Damien Miller | e9cf357 | 2001-02-09 12:55:35 +1100 | [diff] [blame] | 2 | |
Ben Lindstrom | 3c06f6a | 2001-01-31 21:52:01 +0000 | [diff] [blame] | 3 | sysconfdir=@sysconfdir@ |
| 4 | piddir=@piddir@ |
| 5 | srcdir=@srcdir@ |
| 6 | top_srcdir=@top_srcdir@ |
| 7 | |
Ben Lindstrom | 2ffbbe6 | 2001-02-02 00:00:54 +0000 | [diff] [blame] | 8 | VPATH=@srcdir@ |
Ben Lindstrom | 3c06f6a | 2001-01-31 21:52:01 +0000 | [diff] [blame] | 9 | CC=@CC@ |
| 10 | LD=@LD@ |
| 11 | CFLAGS=@CFLAGS@ |
Ben Lindstrom | 9ae2bb6 | 2001-03-12 05:16:18 +0000 | [diff] [blame] | 12 | CPPFLAGS=-I. -I.. -I$(srcdir) -I$(srcdir)/.. @CPPFLAGS@ @DEFS@ |
Ben Lindstrom | 3c06f6a | 2001-01-31 21:52:01 +0000 | [diff] [blame] | 13 | LIBS=@LIBS@ |
| 14 | AR=@AR@ |
| 15 | RANLIB=@RANLIB@ |
| 16 | INSTALL=@INSTALL@ |
| 17 | LDFLAGS=-L. @LDFLAGS@ |
| 18 | |
Darren Tucker | 81eb5d5 | 2005-06-01 21:39:33 +1000 | [diff] [blame] | 19 | OPENBSD=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 Lindstrom | 3c06f6a | 2001-01-31 21:52:01 +0000 | [diff] [blame] | 20 | |
Damien Miller | 57f3915 | 2005-11-24 19:58:19 +1100 | [diff] [blame] | 21 | COMPAT=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 Lindstrom | 3c06f6a | 2001-01-31 21:52:01 +0000 | [diff] [blame] | 22 | |
Damien Miller | 598bbc2 | 2005-12-31 16:33:36 +1100 | [diff] [blame] | 23 | PORTS=port-irix.o port-aix.o port-uw.o port-tun.o |
Ben Lindstrom | f095a85 | 2002-02-19 20:02:48 +0000 | [diff] [blame] | 24 | |
Ben Lindstrom | 40f4151 | 2001-02-08 18:05:17 +0000 | [diff] [blame] | 25 | .c.o: |
| 26 | $(CC) $(CFLAGS) $(CPPFLAGS) -c $< |
Ben Lindstrom | 3c06f6a | 2001-01-31 21:52:01 +0000 | [diff] [blame] | 27 | |
| 28 | all: libopenbsd-compat.a |
| 29 | |
Ben Lindstrom | 1c56a01 | 2001-02-03 21:58:12 +0000 | [diff] [blame] | 30 | $(COMPAT): ../config.h |
| 31 | $(OPENBSD): ../config.h |
Ben Lindstrom | f095a85 | 2002-02-19 20:02:48 +0000 | [diff] [blame] | 32 | $(PORTS): ../config.h |
Ben Lindstrom | 3c06f6a | 2001-01-31 21:52:01 +0000 | [diff] [blame] | 33 | |
Ben Lindstrom | f095a85 | 2002-02-19 20:02:48 +0000 | [diff] [blame] | 34 | libopenbsd-compat.a: $(COMPAT) $(OPENBSD) $(PORTS) |
| 35 | $(AR) rv $@ $(COMPAT) $(OPENBSD) $(PORTS) |
Ben Lindstrom | 3c06f6a | 2001-01-31 21:52:01 +0000 | [diff] [blame] | 36 | $(RANLIB) $@ |
| 37 | |
| 38 | clean: |
| 39 | rm -f *.o *.a core |
| 40 | |
| 41 | distclean: clean |
| 42 | rm -f Makefile *~ |