Annotation of embedtools/src/Makefile.in, revision 1.4.2.2
1.2 misho 1: #
2: # (C) 2009 AITnet - Sofia/Bulgaria - <misho@openbsd-bg.org>
3: # by Michael Pounov <misho@openbsd-bg.org>
4: #
5: # $Author: misho $
1.4.2.2 ! misho 6: # $Id: Makefile.in,v 1.4.2.1 2013/01/18 13:18:14 misho Exp $
1.2 misho 7: #
8:
9: prefix = @prefix@
10: exec_prefix = @exec_prefix@
11: includedir = @includedir@
12: libdir = @libdir@
13:
1.3 misho 14: OS = @OS@
1.4.2.2 ! misho 15: MACHINE = @MACHINE@
1.3 misho 16:
1.2 misho 17: CC = @CC@
18: MKDEP = @MKDEP@
19:
20: BIN = ../bin
21: INC = ../inc
22:
1.4.2.1 misho 23: LDADD = -lelwix
1.2 misho 24: CFEXEC_LDADD = ${LDADD} -laitcfg
25: DPATCH_LDADD = ${LDADD} -laitsync -lcrypto
1.4.2.1 misho 26: DIRER_LDADD = ${LDADD} -lcrypto -laitsync
1.2 misho 27: DIRCMP_LDADD = ${LDADD} -lcrypto -laitsync
28: #XMLER_LDADD = ${LDADD} -laitio ${libdir}/libaxl.a ${libdir}/libaxl-ns.a
1.4.2.1 misho 29: XMLER_LDADD = ${LDADD} -laitwww -laxl -laxl-ns
1.2 misho 30: WDOG_LDADD =
31: ATHCTL_LDADD =
1.4.2.1 misho 32: DWDS_LDADD = ${LDADD} -laitcfg
1.3 misho 33: CFI_LDADD =
1.4 misho 34: PCENG_LDADD = ${LDADD} -laitcfg
1.4.2.1 misho 35: VOUCHER_LDADD = ${LDADD} -lcrypto -laitcfg
1.3 misho 36:
37: CFLAGS = -I. -I${INC} -I${includedir} -I${includedir}/axl @CFLAGS@
38: LDFLAGS = -L. -L${libdir} -Wl,-R${libdir} @LDFLAGS@
39:
40: SRCS = ${CFEXEC_SRCS} ${UPDIMG_SRCS} ${GET1STETH_SRCS} ${DPATCH_SRCS} \
41: ${DIRER_SRCS} ${DIRCMP_SRCS} ${XMLER_SRCS} ${WDOG_SRCS} \
1.4.2.2 ! misho 42: ${VOUCHER_SRCS}
1.3 misho 43: PROG = ${CFEXEC_PROG} ${UPDIMG_PROG} ${GET1STETH_PROG} ${DPATCH_PROG} \
44: ${DIRER_PROG} ${DIRCMP_PROG} ${XMLER_PROG} ${WDOG_PROG} \
1.4.2.2 ! misho 45: ${VOUCHER_PROG}
! 46:
! 47: .if ${MACHINE} == "i386"
! 48: SRCS += ${PCENG_SRCS}
! 49: PROG += ${PCENG_PROG}
! 50: .endif
1.2 misho 51:
52: CFEXEC_SRCS = cfexec.c
53: CFEXEC_OBJS = cfexec.o compile.o
54: CFEXEC_PROG = cfexec
55:
56: UPDIMG_SRCS = updimg.c upd.c
57: UPDIMG_OBJS = updimg.o compile.o upd.o
58: UPDIMG_PROG = updimg
59:
60: GET1STETH_SRCS = get1steth.c
61: GET1STETH_OBJS = get1steth.o compile.o
62: GET1STETH_PROG = get1steth
63:
64: DPATCH_SRCS = dpatch.c
65: DPATCH_OBJS = dpatch.o compile.o
66: DPATCH_PROG = dpatch
67:
68: DIRER_SRCS = direr.c
69: DIRER_OBJS = direr.o compile.o
70: DIRER_PROG = direr
71:
72: DIRCMP_SRCS = dircmp.c
73: DIRCMP_OBJS = dircmp.o compile.o
74: DIRCMP_PROG = dircmp
75:
76: XMLER_SRCS = xmler.c
77: XMLER_OBJS = xmler.o compile.o
78: XMLER_PROG = xmler
79:
80: WDOG_SRCS = wdog.c
81: WDOG_OBJS = wdog.o compile.o
82: WDOG_PROG = wdog
83:
84: ATHCTL_SRCS = athctl.c
85: ATHCTL_OBJS = athctl.o compile.o
86: ATHCTL_PROG = athctl
87:
88: DWDS_SRCS = dwds.c vap.c
89: DWDS_OBJS = dwds.o compile.o vap.o
90: DWDS_PROG = dwds
91:
1.3 misho 92: CFI_SRCS = cfi.c
93: CFI_OBJS = cfi.o compile.o
94: CFI_PROG = cfi
95:
96: PCENG_SRCS = pceng.c pceng_run.c
97: PCENG_OBJS = pceng.o compile.o pceng_run.o
98: PCENG_PROG = pceng
99:
100: VOUCHER_SRCS = voucher.c
101: VOUCHER_OBJS = voucher.o compile.o
102: VOUCHER_PROG = voucher
1.2 misho 103:
104:
105: all: depend \
1.3 misho 106: ${PROG} \
107: ${OS}
108:
109: FreeBSD: ${ATHCTL_PROG} ${DWDS_PROG} ${CFI_PROG} ${PCENG_PROG}
110:
111: OpenBSD:
112:
113: NetBSD:
1.2 misho 114:
115: .c.o: ${SRCS} compile.c
116: ${CC} -c ${CFLAGS} $<
117:
118: depend:
119: ./compile.sh
120: ${MKDEP} ${CFLAGS} ${SRCS}
121:
122: clean:
123: rm -f *.o .depend compile.c *~
124:
125: install:
126:
127: ${CFEXEC_PROG}: ${CFEXEC_OBJS}
128: ${CC} ${LDFLAGS} -o${BIN}/$@ ${CFEXEC_OBJS} ${CFEXEC_LDADD}
129:
130: ${UPDIMG_PROG}: ${UPDIMG_OBJS}
131: ${CC} ${LDFLAGS} -o${BIN}/$@ ${UPDIMG_OBJS}
132:
133: ${GET1STETH_PROG}: ${GET1STETH_OBJS}
134: ${CC} ${LDFLAGS} -o${BIN}/$@ ${GET1STETH_OBJS}
135:
136: ${DPATCH_PROG}: ${DPATCH_OBJS}
137: ${CC} ${LDFLAGS} -o${BIN}/$@ ${DPATCH_OBJS} ${DPATCH_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: ${WDOG_PROG}: ${WDOG_OBJS}
149: ${CC} ${LDFLAGS} -o${BIN}/$@ ${WDOG_OBJS} ${WDOG_LDADD}
150:
151: ${ATHCTL_PROG}: ${ATHCTL_OBJS}
152: ${CC} ${LDFLAGS} -o${BIN}/$@ ${ATHCTL_OBJS} ${ATHCTL_LDADD}
153:
154: ${DWDS_PROG}: ${DWDS_OBJS}
155: ${CC} ${LDFLAGS} -o${BIN}/$@ ${DWDS_OBJS} ${DWDS_LDADD}
156:
1.3 misho 157: ${CFI_PROG}: ${CFI_OBJS}
158: ${CC} ${LDFLAGS} -o${BIN}/$@ ${CFI_OBJS} ${CFI_LDADD}
159:
160: ${PCENG_PROG}: ${PCENG_OBJS}
161: ${CC} ${LDFLAGS} -o${BIN}/$@ ${PCENG_OBJS} ${PCENG_LDADD}
162:
163: ${VOUCHER_PROG}: ${VOUCHER_OBJS}
164: ${CC} ${LDFLAGS} -o${BIN}/$@ ${VOUCHER_OBJS} ${VOUCHER_LDADD}
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>