Home | History | Annotate | Download | only in openbsd-compat
      1 # $Id: Makefile.in,v 1.46 2010/10/07 11:19:24 djm Exp $
      2 
      3 sysconfdir=@sysconfdir@
      4 piddir=@piddir@
      5 srcdir=@srcdir@
      6 top_srcdir=@top_srcdir@
      7 
      8 VPATH=@srcdir@
      9 CC=@CC@
     10 LD=@LD@
     11 CFLAGS=@CFLAGS@
     12 CPPFLAGS=-I. -I.. -I$(srcdir) -I$(srcdir)/.. @CPPFLAGS@ @DEFS@
     13 LIBS=@LIBS@
     14 AR=@AR@
     15 RANLIB=@RANLIB@
     16 INSTALL=@INSTALL@
     17 LDFLAGS=-L. @LDFLAGS@
     18 
     19 OPENBSD=base64.o basename.o bindresvport.o daemon.o dirname.o fmt_scaled.o getcwd.o getgrouplist.o getopt.o getrrsetbyname.o glob.o inet_aton.o inet_ntoa.o inet_ntop.o mktemp.o pwcache.o readpassphrase.o realpath.o rresvport.o setenv.o setproctitle.o sha2.o sigact.o strlcat.o strlcpy.o strmode.o strptime.o strsep.o strtonum.o strtoll.o strtoul.o timingsafe_bcmp.o vis.o
     20 
     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-poll.o bsd-snprintf.o bsd-statvfs.o bsd-waitpid.o fake-rfc2553.o openssl-compat.o xmmap.o xcrypt.o
     22 
     23 PORTS=port-aix.o port-irix.o port-linux.o port-solaris.o port-tun.o port-uw.o
     24 
     25 .c.o:
     26 	$(CC) $(CFLAGS) $(CPPFLAGS) -c $<
     27 
     28 all: libopenbsd-compat.a
     29 
     30 $(COMPAT): ../config.h
     31 $(OPENBSD): ../config.h
     32 $(PORTS): ../config.h
     33 
     34 libopenbsd-compat.a:  $(COMPAT) $(OPENBSD) $(PORTS)
     35 	$(AR) rv $@ $(COMPAT) $(OPENBSD) $(PORTS)
     36 	$(RANLIB) $@
     37 
     38 clean:
     39 	rm -f *.o *.a core 
     40 
     41 distclean: clean
     42 	rm -f Makefile *~
     43