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.4.2.10 2014/01/28 08:07:47 misho Exp $
7: #
8:
9: prefix = @prefix@
10: exec_prefix = @exec_prefix@
11: includedir = @includedir@
12: libdir = @libdir@
13:
14: OS = @OS@
15: MACHINE = @host_cpu@
16:
17: CC = @CC@
18: MKDEP = @MKDEP@
19:
20: BIN = ../bin
21: INC = ../inc
22:
23: LDADD = -lelwix
24: CFEXEC_LDADD = ${LDADD} -laitcfg
25: DPATCH_LDADD = ${LDADD} -laitsync -lcrypto
26: DIRER_LDADD = ${LDADD} -lcrypto -laitsync
27: DIRCMP_LDADD = ${LDADD} -lcrypto -laitsync
28: #XMLER_LDADD = ${LDADD} -laitio ${libdir}/libaxl.a ${libdir}/libaxl-ns.a
29: #XMLER_LDADD = ${LDADD} -laitwww -laxl -laxl-ns
30: UBE_LDADD =
31: CFGER_LDADD = ${LDADD} -laitcfg
32: WDOG_LDADD =
33: ATHCTL_LDADD =
34: DWDS_LDADD = ${LDADD} -laitcfg
35: CFI_LDADD =
36: PCENG_LDADD = ${LDADD} -laitcfg
37: VOUCHER_LDADD = ${LDADD} -lcrypto -laitcfg
38:
39: #CFLAGS = -I. -I${INC} -I${includedir} -I${includedir}/axl @CFLAGS@
40: CFLAGS = -I. -I${INC} -I${includedir} @CFLAGS@
41: LDFLAGS = -L. -L${libdir} -Wl,-R${libdir} @LDFLAGS@
42:
43: SRCS = ${CFEXEC_SRCS} ${UPDIMG_SRCS} ${GET1STETH_SRCS} ${DPATCH_SRCS} \
44: ${DIRER_SRCS} ${DIRCMP_SRCS} ${WDOG_SRCS} \
45: ${VOUCHER_SRCS} ${CFGER_SRCS} ${UBE_SRCS}
46: PROG = ${CFEXEC_PROG} ${UPDIMG_PROG} ${GET1STETH_PROG} ${DPATCH_PROG} \
47: ${DIRER_PROG} ${DIRCMP_PROG} ${WDOG_PROG} \
48: ${VOUCHER_PROG} ${CFGER_PROG} ${UBE_PROG}
49:
50: .if ${MACHINE} == "i386" && ${OS} == "FreeBSD"
51: SRCS += ${PCENG_SRCS}
52: PROG += ${PCENG_PROG}
53: .endif
54:
55: CFEXEC_SRCS = cfexec.c
56: CFEXEC_OBJS = cfexec.o compile.o
57: CFEXEC_PROG = cfexec
58:
59: UPDIMG_SRCS = updimg.c upd.c
60: UPDIMG_OBJS = updimg.o compile.o upd.o
61: UPDIMG_PROG = updimg
62:
63: GET1STETH_SRCS = get1steth.c
64: GET1STETH_OBJS = get1steth.o compile.o
65: GET1STETH_PROG = get1steth
66:
67: DPATCH_SRCS = dpatch.c
68: DPATCH_OBJS = dpatch.o compile.o
69: DPATCH_PROG = dpatch
70:
71: DIRER_SRCS = direr.c
72: DIRER_OBJS = direr.o compile.o
73: DIRER_PROG = direr
74:
75: DIRCMP_SRCS = dircmp.c
76: DIRCMP_OBJS = dircmp.o compile.o
77: DIRCMP_PROG = dircmp
78:
79: CFGER_SRCS = cfger.c
80: CFGER_OBJS = cfger.o compile.o
81: CFGER_PROG = cfger
82:
83: XMLER_SRCS = xmler.c
84: XMLER_OBJS = xmler.o compile.o
85: XMLER_PROG = xmler
86:
87: UBE_SRCS = ube.c
88: UBE_OBJS = ube.o compiler.o
89: UBE_PROG = ube
90:
91: WDOG_SRCS = wdog.c
92: WDOG_OBJS = wdog.o compile.o
93: WDOG_PROG = wdog
94:
95: ATHCTL_SRCS = athctl.c
96: ATHCTL_OBJS = athctl.o compile.o
97: ATHCTL_PROG = athctl
98:
99: DWDS_SRCS = dwds.c vap.c
100: DWDS_OBJS = dwds.o compile.o vap.o
101: DWDS_PROG = dwds
102:
103: CFI_SRCS = cfi.c
104: CFI_OBJS = cfi.o compile.o
105: CFI_PROG = cfi
106:
107: PCENG_SRCS = pceng.c pceng_run.c
108: PCENG_OBJS = pceng.o compile.o pceng_run.o
109: PCENG_PROG = pceng
110:
111: VOUCHER_SRCS = voucher.c
112: VOUCHER_OBJS = voucher.o compile.o
113: VOUCHER_PROG = voucher
114:
115:
116: all: depend \
117: ${PROG} \
118: ${OS}
119:
120: FreeBSD: ${ATHCTL_PROG} ${DWDS_PROG} ${CFI_PROG}
121:
122: OpenBSD:
123:
124: NetBSD:
125:
126: .c.o: ${SRCS} compile.c
127: ${CC} -c ${CFLAGS} $<
128:
129: depend:
130: ./compile.sh
131: ${MKDEP} ${CFLAGS} ${SRCS}
132:
133: clean:
134: rm -f *.o .depend compile.c *~
135:
136: install:
137:
138: ${CFEXEC_PROG}: ${CFEXEC_OBJS}
139: ${CC} ${LDFLAGS} -o${BIN}/$@ ${CFEXEC_OBJS} ${CFEXEC_LDADD}
140:
141: ${UPDIMG_PROG}: ${UPDIMG_OBJS}
142: ${CC} ${LDFLAGS} -o${BIN}/$@ ${UPDIMG_OBJS}
143:
144: ${GET1STETH_PROG}: ${GET1STETH_OBJS}
145: ${CC} ${LDFLAGS} -o${BIN}/$@ ${GET1STETH_OBJS}
146:
147: ${DPATCH_PROG}: ${DPATCH_OBJS}
148: ${CC} ${LDFLAGS} -o${BIN}/$@ ${DPATCH_OBJS} ${DPATCH_LDADD}
149:
150: ${DIRER_PROG}: ${DIRER_OBJS}
151: ${CC} ${LDFLAGS} -o${BIN}/$@ ${DIRER_OBJS} ${LDADD} ${DIRER_LDADD}
152:
153: ${DIRCMP_PROG}: ${DIRCMP_OBJS}
154: ${CC} ${LDFLAGS} -o${BIN}/$@ ${DIRCMP_OBJS} ${LDADD} ${DIRCMP_LDADD}
155:
156: ${CFGER_PROG}: ${CFGER_OBJS}
157: ${CC} ${LDFLAGS} -o${BIN}/$@ ${CFGER_OBJS} ${CFGER_LDADD}
158:
159: #${XMLER_PROG}: ${XMLER_OBJS}
160: # ${CC} ${LDFLAGS} -o${BIN}/$@ ${XMLER_OBJS} ${XMLER_LDADD}
161:
162: ${UBE_PROG}: ${UBE_OBJS}
163: ${CC} ${LDFLAGS} -o${BIN}/$@ ${UBE_OBJS} ${UBE_LDADD}
164:
165: ${WDOG_PROG}: ${WDOG_OBJS}
166: ${CC} ${LDFLAGS} -o${BIN}/$@ ${WDOG_OBJS} ${WDOG_LDADD}
167:
168: ${ATHCTL_PROG}: ${ATHCTL_OBJS}
169: ${CC} ${LDFLAGS} -o${BIN}/$@ ${ATHCTL_OBJS} ${ATHCTL_LDADD}
170:
171: ${DWDS_PROG}: ${DWDS_OBJS}
172: ${CC} ${LDFLAGS} -o${BIN}/$@ ${DWDS_OBJS} ${DWDS_LDADD}
173:
174: ${CFI_PROG}: ${CFI_OBJS}
175: ${CC} ${LDFLAGS} -o${BIN}/$@ ${CFI_OBJS} ${CFI_LDADD}
176:
177: ${PCENG_PROG}: ${PCENG_OBJS}
178: ${CC} ${LDFLAGS} -o${BIN}/$@ ${PCENG_OBJS} ${PCENG_LDADD}
179:
180: ${VOUCHER_PROG}: ${VOUCHER_OBJS}
181: ${CC} ${LDFLAGS} -o${BIN}/$@ ${VOUCHER_OBJS} ${VOUCHER_LDADD}
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>