Annotation of embedtools/src/Makefile.in, revision 1.2.2.5
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.2.2.5 ! misho 6: # $Id: Makefile.in,v 1.2.2.4 2011/06/13 20:04:12 misho Exp $
1.2 misho 7: #
8:
9: prefix = @prefix@
10: exec_prefix = @exec_prefix@
11: includedir = @includedir@
12: libdir = @libdir@
13:
1.2.2.2 misho 14: OS = @OS@
15:
1.2 misho 16: CC = @CC@
17: MKDEP = @MKDEP@
18:
19: BIN = ../bin
20: INC = ../inc
21:
22: LDADD = -laitcrc
23: CFEXEC_LDADD = ${LDADD} -laitcfg
24: #DUMPCFG_LDADD = ${LDADD} -laitcfg
25: DPATCH_LDADD = ${LDADD} -laitsync -lcrypto
26: DIRER_LDADD = ${LDADD} -lcrypto -laitio -laitsync
27: DIRCMP_LDADD = ${LDADD} -lcrypto -laitsync
28: #XMLER_LDADD = ${LDADD} -laitio ${libdir}/libaxl.a ${libdir}/libaxl-ns.a
29: XMLER_LDADD = ${LDADD} -laitio -laxl -laxl-ns
30: WDOG_LDADD =
31: ATHCTL_LDADD =
32: DWDS_LDADD = ${LDADD} -laitio -laitcfg
33: PKGADM_LDADD =
1.2.2.5 ! misho 34: CFI_LDADD =
1.2 misho 35:
36: CFLAGS = -I. -I${INC} -I${includedir} -I${includedir}/axl -Wall -O2 -fPIC -g -DINET6
1.2.2.4 misho 37: LDFLAGS = -L. -L${libdir} -Wl,-R${libdir}
1.2 misho 38:
39: SRCS = ${CFEXEC_SRCS} ${UPDIMG_SRCS} ${GET1STETH_SRCS} ${DPATCH_SRCS} ${RCD_SRCS} \
1.2.2.2 misho 40: ${DIRER_SRCS} ${DIRCMP_SRCS} ${XMLER_SRCS} ${WDOG_SRCS} ${PKGADM_SRCS}
1.2 misho 41: PROG = ${CFEXEC_PROG} ${UPDIMG_PROG} ${GET1STETH_PROG} ${DPATCH_PROG} ${RCD_PROG} \
1.2.2.2 misho 42: ${DIRER_PROG} ${DIRCMP_PROG} ${XMLER_PROG} ${WDOG_PROG} ${PKGADM_PROG}
1.2 misho 43:
44: CFEXEC_SRCS = cfexec.c
45: CFEXEC_OBJS = cfexec.o compile.o
46: CFEXEC_PROG = cfexec
47:
48: UPDIMG_SRCS = updimg.c upd.c
49: UPDIMG_OBJS = updimg.o compile.o upd.o
50: UPDIMG_PROG = updimg
51:
52: #DUMPCFG_SRCS = dumpcfg.c dumpz.c
53: #DUMPCFG_OBJS = dumpcfg.o compile.o dumpz.o
54: #DUMPCFG_PROG = dumpcfg
55:
56: GET1STETH_SRCS = get1steth.c
57: GET1STETH_OBJS = get1steth.o compile.o
58: GET1STETH_PROG = get1steth
59:
60: DPATCH_SRCS = dpatch.c
61: DPATCH_OBJS = dpatch.o compile.o
62: DPATCH_PROG = dpatch
63:
64: RCD_SRCS = rcd.c
65: RCD_OBJS = rcd.o compile.o
66: RCD_PROG = rcd
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:
92: PKGADM_SRCS = pkgadm.c
93: PKGADM_OBJS = pkgadm.o
94: PKGADM_PROG = pkgadm
95:
1.2.2.5 ! misho 96: CFI_SRCS = cfi.c
! 97: CFI_OBJS = cfi.o compile.o
! 98: CFI_PROG = cfi
! 99:
1.2 misho 100:
101: all: depend \
1.2.2.2 misho 102: ${PROG} \
103: ${OS}
104:
1.2.2.5 ! misho 105: FreeBSD: ${ATHCTL_PROG} ${DWDS_PROG} ${CFI_PROG}
1.2 misho 106:
1.2.2.3 misho 107: OpenBSD:
108:
109: NetBSD:
110:
1.2 misho 111: .c.o: ${SRCS} compile.c
112: ${CC} -c ${CFLAGS} $<
113:
114: depend:
115: ./compile.sh
116: ${MKDEP} ${CFLAGS} ${SRCS}
117:
118: clean:
119: rm -f *.o .depend compile.c *~
120:
121: install:
122:
123: ${CFEXEC_PROG}: ${CFEXEC_OBJS}
124: ${CC} ${LDFLAGS} -o${BIN}/$@ ${CFEXEC_OBJS} ${CFEXEC_LDADD}
125:
126: ${UPDIMG_PROG}: ${UPDIMG_OBJS}
127: ${CC} ${LDFLAGS} -o${BIN}/$@ ${UPDIMG_OBJS}
128:
129: #${DUMPCFG_PROG}: ${DUMPCFG_OBJS}
130: # ${CC} ${LDFLAGS} -o${BIN}/$@ ${DUMPCFG_OBJS} ${DUMPCFG_LDADD}
131:
132: ${GET1STETH_PROG}: ${GET1STETH_OBJS}
133: ${CC} ${LDFLAGS} -o${BIN}/$@ ${GET1STETH_OBJS}
134:
135: ${DPATCH_PROG}: ${DPATCH_OBJS}
136: ${CC} ${LDFLAGS} -o${BIN}/$@ ${DPATCH_OBJS} ${DPATCH_LDADD}
137:
138: ${RCD_PROG}: ${RCD_OBJS}
139: ${CC} ${LDFLAGS} -o${BIN}/$@ ${RCD_OBJS} ${LDADD}
140:
141: ${DIRER_PROG}: ${DIRER_OBJS}
142: ${CC} ${LDFLAGS} -o${BIN}/$@ ${DIRER_OBJS} ${LDADD} ${DIRER_LDADD}
143:
144: ${DIRCMP_PROG}: ${DIRCMP_OBJS}
145: ${CC} ${LDFLAGS} -o${BIN}/$@ ${DIRCMP_OBJS} ${LDADD} ${DIRCMP_LDADD}
146:
147: ${XMLER_PROG}: ${XMLER_OBJS}
148: ${CC} ${LDFLAGS} -o${BIN}/$@ ${XMLER_OBJS} ${XMLER_LDADD}
149:
150: ${WDOG_PROG}: ${WDOG_OBJS}
151: ${CC} ${LDFLAGS} -o${BIN}/$@ ${WDOG_OBJS} ${WDOG_LDADD}
152:
153: ${ATHCTL_PROG}: ${ATHCTL_OBJS}
154: ${CC} ${LDFLAGS} -o${BIN}/$@ ${ATHCTL_OBJS} ${ATHCTL_LDADD}
155:
156: ${DWDS_PROG}: ${DWDS_OBJS}
157: ${CC} ${LDFLAGS} -o${BIN}/$@ ${DWDS_OBJS} ${DWDS_LDADD}
158:
159: ${PKGADM_PROG}: ${PKGADM_OBJS}
160: ${CC} ${LDFLAGS} -o${BIN}/$@ ${PKGADM_OBJS} ${PKGADM_LDADD}
1.2.2.5 ! misho 161:
! 162: ${CFI_PROG}: ${CFI_OBJS}
! 163: ${CC} ${LDFLAGS} -o${BIN}/$@ ${CFI_OBJS} ${CFI_LDADD}
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>