blob: 45ed3740a6063a0e87060ed97674b5eb5f84b529 [file] [log] [blame]
Damien Miller9de61e82001-03-19 10:09:27 +11001# $Id: Makefile.in,v 1.9 2001/03/18 23:09:28 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
Damien Miller9de61e82001-03-19 10:09:27 +110019OPENBSD=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 Lindstrom3c06f6a2001-01-31 21:52:01 +000020
21COMPAT=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 Lindstrom40f41512001-02-08 18:05:17 +000023.c.o:
24 $(CC) $(CFLAGS) $(CPPFLAGS) -c $<
Ben Lindstrom3c06f6a2001-01-31 21:52:01 +000025
26all: libopenbsd-compat.a
27
Ben Lindstrom1c56a012001-02-03 21:58:12 +000028$(COMPAT): ../config.h
29$(OPENBSD): ../config.h
Ben Lindstrom3c06f6a2001-01-31 21:52:01 +000030
31libopenbsd-compat.a: $(COMPAT) $(OPENBSD)
32 $(AR) rv $@ $(COMPAT) $(OPENBSD)
33 $(RANLIB) $@
34
35clean:
36 rm -f *.o *.a core
37
38distclean: clean
39 rm -f Makefile *~