1: #
2: # (C) 2009 AITnet - Sofia/Bulgaria - <misho@openbsd-bg.org>
3: # by Michael Pounov <misho@openbsd-bg.org>
4: #
5: # $Author: misho $
6: # $Id: Makefile.in,v 1.2 2011/06/08 12:45:41 misho Exp $
7: #
8:
9: prefix = @prefix@
10: exec_prefix = @exec_prefix@
11: includedir = @includedir@
12: libdir = @libdir@
13:
14: CC = @CC@
15: MKDEP = @MKDEP@
16:
17: BIN = ../bin
18: INC = ../inc
19:
20: LDADD = -laitcrc
21: CFEXEC_LDADD = ${LDADD} -laitcfg
22: #DUMPCFG_LDADD = ${LDADD} -laitcfg
23: DPATCH_LDADD = ${LDADD} -laitsync -lcrypto
24: DIRER_LDADD = ${LDADD} -lcrypto -laitio -laitsync
25: DIRCMP_LDADD = ${LDADD} -lcrypto -laitsync
26: #XMLER_LDADD = ${LDADD} -laitio ${libdir}/libaxl.a ${libdir}/libaxl-ns.a
27: XMLER_LDADD = ${LDADD} -laitio -laxl -laxl-ns
28: WDOG_LDADD =
29: CLOG_LDADD =
30: ATHCTL_LDADD =
31: DWDS_LDADD = ${LDADD} -laitio -laitcfg
32: SYSLOGD_LDADD = -lutil
33: PKGADM_LDADD =
34:
35: CFLAGS = -I. -I${INC} -I${includedir} -I${includedir}/axl -Wall -O2 -fPIC -g -DINET6
36: LDFLAGS = -L. -L${libdir}
37:
38: SRCS = ${CFEXEC_SRCS} ${UPDIMG_SRCS} ${GET1STETH_SRCS} ${DPATCH_SRCS} ${RCD_SRCS} \
39: ${DIRER_SRCS} ${DIRCMP_SRCS} ${XMLER_SRCS} ${CLOG_SRCS} ${SYSLOGD_SRCS} \
40: ${WDOG_SRCS} ${ATHCTL_SRCS} ${DWDS_SRCS} ${PKGADM_SRCS}
41: PROG = ${CFEXEC_PROG} ${UPDIMG_PROG} ${GET1STETH_PROG} ${DPATCH_PROG} ${RCD_PROG} \
42: ${DIRER_PROG} ${DIRCMP_PROG} ${XMLER_PROG} ${CLOG_PROG} ${SYSLOGD_PROG} \
43: ${WDOG_PROG} ${ATHCTL_PROG} ${DWDS_PROG} ${PKGADM_PROG}
44:
45: CFEXEC_SRCS = cfexec.c
46: CFEXEC_OBJS = cfexec.o compile.o
47: CFEXEC_PROG = cfexec
48:
49: UPDIMG_SRCS = updimg.c upd.c
50: UPDIMG_OBJS = updimg.o compile.o upd.o
51: UPDIMG_PROG = updimg
52:
53: #DUMPCFG_SRCS = dumpcfg.c dumpz.c
54: #DUMPCFG_OBJS = dumpcfg.o compile.o dumpz.o
55: #DUMPCFG_PROG = dumpcfg
56:
57: GET1STETH_SRCS = get1steth.c
58: GET1STETH_OBJS = get1steth.o compile.o
59: GET1STETH_PROG = get1steth
60:
61: DPATCH_SRCS = dpatch.c
62: DPATCH_OBJS = dpatch.o compile.o
63: DPATCH_PROG = dpatch
64:
65: RCD_SRCS = rcd.c
66: RCD_OBJS = rcd.o compile.o
67: RCD_PROG = rcd
68:
69: DIRER_SRCS = direr.c
70: DIRER_OBJS = direr.o compile.o
71: DIRER_PROG = direr
72:
73: DIRCMP_SRCS = dircmp.c
74: DIRCMP_OBJS = dircmp.o compile.o
75: DIRCMP_PROG = dircmp
76:
77: XMLER_SRCS = xmler.c
78: XMLER_OBJS = xmler.o compile.o
79: XMLER_PROG = xmler
80:
81: CLOG_SRCS = clog.c
82: CLOG_OBJS = clog.o compile.o
83: CLOG_PROG = clog
84:
85: SYSLOGD_SRCS = syslogd.c
86: SYSLOGD_OBJS = syslogd.o compile.o
87: SYSLOGD_PROG = syslogd
88:
89: WDOG_SRCS = wdog.c
90: WDOG_OBJS = wdog.o compile.o
91: WDOG_PROG = wdog
92:
93: ATHCTL_SRCS = athctl.c
94: ATHCTL_OBJS = athctl.o compile.o
95: ATHCTL_PROG = athctl
96:
97: DWDS_SRCS = dwds.c vap.c
98: DWDS_OBJS = dwds.o compile.o vap.o
99: DWDS_PROG = dwds
100:
101: PKGADM_SRCS = pkgadm.c
102: PKGADM_OBJS = pkgadm.o
103: PKGADM_PROG = pkgadm
104:
105:
106: all: depend \
107: ${PROG}
108:
109: .c.o: ${SRCS} compile.c
110: ${CC} -c ${CFLAGS} $<
111:
112: depend:
113: ./compile.sh
114: ${MKDEP} ${CFLAGS} ${SRCS}
115:
116: clean:
117: rm -f *.o .depend compile.c *~
118:
119: install:
120:
121: ${CFEXEC_PROG}: ${CFEXEC_OBJS}
122: ${CC} ${LDFLAGS} -o${BIN}/$@ ${CFEXEC_OBJS} ${CFEXEC_LDADD}
123:
124: ${UPDIMG_PROG}: ${UPDIMG_OBJS}
125: ${CC} ${LDFLAGS} -o${BIN}/$@ ${UPDIMG_OBJS}
126:
127: #${DUMPCFG_PROG}: ${DUMPCFG_OBJS}
128: # ${CC} ${LDFLAGS} -o${BIN}/$@ ${DUMPCFG_OBJS} ${DUMPCFG_LDADD}
129:
130: ${GET1STETH_PROG}: ${GET1STETH_OBJS}
131: ${CC} ${LDFLAGS} -o${BIN}/$@ ${GET1STETH_OBJS}
132:
133: ${DPATCH_PROG}: ${DPATCH_OBJS}
134: ${CC} ${LDFLAGS} -o${BIN}/$@ ${DPATCH_OBJS} ${DPATCH_LDADD}
135:
136: ${RCD_PROG}: ${RCD_OBJS}
137: ${CC} ${LDFLAGS} -o${BIN}/$@ ${RCD_OBJS} ${LDADD}
138:
139: ${DIRER_PROG}: ${DIRER_OBJS}
140: ${CC} ${LDFLAGS} -o${BIN}/$@ ${DIRER_OBJS} ${LDADD} ${DIRER_LDADD}
141:
142: ${DIRCMP_PROG}: ${DIRCMP_OBJS}
143: ${CC} ${LDFLAGS} -o${BIN}/$@ ${DIRCMP_OBJS} ${LDADD} ${DIRCMP_LDADD}
144:
145: ${XMLER_PROG}: ${XMLER_OBJS}
146: ${CC} ${LDFLAGS} -o${BIN}/$@ ${XMLER_OBJS} ${XMLER_LDADD}
147:
148: ${CLOG_PROG}: ${CLOG_OBJS}
149: ${CC} ${LDFLAGS} -o${BIN}/$@ ${CLOG_OBJS} ${CLOG_LDADD}
150:
151: ${SYSLOGD_PROG}: ${SYSLOGD_OBJS}
152: ${CC} ${LDFLAGS} -o${BIN}/$@ ${SYSLOGD_OBJS} ${SYSLOGD_LDADD}
153:
154: ${WDOG_PROG}: ${WDOG_OBJS}
155: ${CC} ${LDFLAGS} -o${BIN}/$@ ${WDOG_OBJS} ${WDOG_LDADD}
156:
157: ${ATHCTL_PROG}: ${ATHCTL_OBJS}
158: ${CC} ${LDFLAGS} -o${BIN}/$@ ${ATHCTL_OBJS} ${ATHCTL_LDADD}
159:
160: ${DWDS_PROG}: ${DWDS_OBJS}
161: ${CC} ${LDFLAGS} -o${BIN}/$@ ${DWDS_OBJS} ${DWDS_LDADD}
162:
163: ${PKGADM_PROG}: ${PKGADM_OBJS}
164: ${CC} ${LDFLAGS} -o${BIN}/$@ ${PKGADM_OBJS} ${PKGADM_LDADD}
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>