Damien Miller | 9de61e8 | 2001-03-19 10:09:27 +1100 | [diff] [blame] | 1 | # $Id: Makefile.in,v 1.9 2001/03/18 23:09:28 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 | |
Damien Miller | 9de61e8 | 2001-03-19 10:09:27 +1100 | [diff] [blame] | 19 | OPENBSD=base64.o bindresvport.o daemon.o getcwd.o getgrouplist.o getusershell.o glob.o inet_aton.o inet_ntoa.o mktemp.o realpath.o rresvport.o setenv.o setproctitle.o sigact.o strlcat.o strlcpy.o strmode.o strsep.o strtok.o vis.o |
Ben Lindstrom | 3c06f6a | 2001-01-31 21:52:01 +0000 | [diff] [blame] | 20 | |
| 21 | COMPAT=bsd-arc4random.o bsd-cygwin_util.o bsd-misc.o bsd-nextstep.o bsd-snprintf.o bsd-waitpid.o fake-getaddrinfo.o fake-getnameinfo.o |
| 22 | |
Ben Lindstrom | 40f4151 | 2001-02-08 18:05:17 +0000 | [diff] [blame] | 23 | .c.o: |
| 24 | $(CC) $(CFLAGS) $(CPPFLAGS) -c $< |
Ben Lindstrom | 3c06f6a | 2001-01-31 21:52:01 +0000 | [diff] [blame] | 25 | |
| 26 | all: libopenbsd-compat.a |
| 27 | |
Ben Lindstrom | 1c56a01 | 2001-02-03 21:58:12 +0000 | [diff] [blame] | 28 | $(COMPAT): ../config.h |
| 29 | $(OPENBSD): ../config.h |
Ben Lindstrom | 3c06f6a | 2001-01-31 21:52:01 +0000 | [diff] [blame] | 30 | |
| 31 | libopenbsd-compat.a: $(COMPAT) $(OPENBSD) |
| 32 | $(AR) rv $@ $(COMPAT) $(OPENBSD) |
| 33 | $(RANLIB) $@ |
| 34 | |
| 35 | clean: |
| 36 | rm -f *.o *.a core |
| 37 | |
| 38 | distclean: clean |
| 39 | rm -f Makefile *~ |