xref: /freebsd/crypto/openssh/openbsd-compat/Makefile.in (revision 031beb4e239bfce798af17f5fe8dba8bcaf13d99)
1sysconfdir=@sysconfdir@
2piddir=@piddir@
3srcdir=@srcdir@
4top_srcdir=@top_srcdir@
5
6VPATH=@srcdir@
7CC=@CC@
8LD=@LD@
9CFLAGS=@CFLAGS@
10CFLAGS_NOPIE=@CFLAGS_NOPIE@
11CPPFLAGS=-I. -I.. -I$(srcdir) -I$(srcdir)/.. @CPPFLAGS@ @DEFS@
12PICFLAG=@PICFLAG@
13LIBS=@LIBS@
14AR=@AR@
15RANLIB=@RANLIB@
16INSTALL=@INSTALL@
17LDFLAGS=-L. @LDFLAGS@
18LDFLAGS_NOPIE=-L. -Lopenbsd-compat/ @LDFLAGS_NOPIE@
19
20OPENBSD=arc4random.o \
21	arc4random_uniform.o \
22	base64.o \
23	basename.o \
24	bcrypt_pbkdf.o \
25	bindresvport.o \
26	blowfish.o \
27	daemon.o \
28	dirname.o \
29	explicit_bzero.o \
30	fmt_scaled.o \
31	freezero.o \
32	fnmatch.o \
33	getcwd.o \
34	getgrouplist.o \
35	getopt_long.o \
36	getrrsetbyname.o \
37	glob.o \
38	inet_aton.o \
39	inet_ntoa.o \
40	inet_ntop.o \
41	md5.o \
42	memmem.o \
43	mktemp.o \
44	pwcache.o \
45	readpassphrase.o \
46	reallocarray.o \
47	recallocarray.o \
48	rresvport.o \
49	setenv.o \
50	setproctitle.o \
51	sha1.o \
52	sha2.o \
53	sigact.o \
54	strcasestr.o \
55	strlcat.o \
56	strlcpy.o \
57	strmode.o \
58	strndup.o \
59	strnlen.o \
60	strptime.o \
61	strsep.o \
62	strtoll.o \
63	strtonum.o \
64	strtoull.o \
65	strtoul.o \
66	timingsafe_bcmp.o \
67	vis.o
68
69COMPAT= bsd-asprintf.o \
70	bsd-closefrom.o \
71	bsd-cygwin_util.o \
72	bsd-err.o \
73	bsd-flock.o \
74	bsd-getentropy.o \
75	bsd-getline.o \
76	bsd-getpagesize.o \
77	bsd-getpeereid.o \
78	bsd-malloc.o \
79	bsd-misc.o \
80	bsd-nextstep.o \
81	bsd-openpty.o \
82	bsd-poll.o \
83	bsd-pselect.o \
84	bsd-setres_id.o \
85	bsd-signal.o \
86	bsd-snprintf.o \
87	bsd-statvfs.o \
88	bsd-timegm.o \
89	bsd-waitpid.o \
90	fake-rfc2553.o \
91	getrrsetbyname-ldns.o \
92	kludge-fd_set.o \
93	openssl-compat.o \
94	libressl-api-compat.o \
95	xcrypt.o
96
97PORTS=	port-aix.o \
98	port-irix.o \
99	port-linux.o \
100	port-prngd.o \
101	port-solaris.o \
102	port-net.o \
103	port-uw.o
104
105.c.o:
106	$(CC) $(CFLAGS_NOPIE) $(PICFLAG) $(CPPFLAGS) -c $<
107
108all: libopenbsd-compat.a
109
110$(COMPAT): ../config.h
111$(OPENBSD): ../config.h
112$(PORTS): ../config.h
113
114libopenbsd-compat.a:  $(COMPAT) $(OPENBSD) $(PORTS)
115	$(AR) rv $@ $(COMPAT) $(OPENBSD) $(PORTS)
116	$(RANLIB) $@
117
118clean:
119	rm -f *.o *.a core
120
121distclean: clean
122	rm -f Makefile *~
123