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.2.1 2011/06/08 12:55:29 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: ATHCTL_LDADD =
30: DWDS_LDADD = ${LDADD} -laitio -laitcfg
31: PKGADM_LDADD =
32:
33: CFLAGS = -I. -I${INC} -I${includedir} -I${includedir}/axl -Wall -O2 -fPIC -g -DINET6
34: LDFLAGS = -L. -L${libdir}
35:
36: SRCS = ${CFEXEC_SRCS} ${UPDIMG_SRCS} ${GET1STETH_SRCS} ${DPATCH_SRCS} ${RCD_SRCS} \
37: ${DIRER_SRCS} ${DIRCMP_SRCS} ${XMLER_SRCS} \
38: ${WDOG_SRCS} ${ATHCTL_SRCS} ${DWDS_SRCS} ${PKGADM_SRCS}
39: PROG = ${CFEXEC_PROG} ${UPDIMG_PROG} ${GET1STETH_PROG} ${DPATCH_PROG} ${RCD_PROG} \
40: ${DIRER_PROG} ${DIRCMP_PROG} ${XMLER_PROG} \
41: ${WDOG_PROG} ${ATHCTL_PROG} ${DWDS_PROG} ${PKGADM_PROG}
42:
43: CFEXEC_SRCS = cfexec.c
44: CFEXEC_OBJS = cfexec.o compile.o
45: CFEXEC_PROG = cfexec
46:
47: UPDIMG_SRCS = updimg.c upd.c
48: UPDIMG_OBJS = updimg.o compile.o upd.o
49: UPDIMG_PROG = updimg
50:
51: #DUMPCFG_SRCS = dumpcfg.c dumpz.c
52: #DUMPCFG_OBJS = dumpcfg.o compile.o dumpz.o
53: #DUMPCFG_PROG = dumpcfg
54:
55: GET1STETH_SRCS = get1steth.c
56: GET1STETH_OBJS = get1steth.o compile.o
57: GET1STETH_PROG = get1steth
58:
59: DPATCH_SRCS = dpatch.c
60: DPATCH_OBJS = dpatch.o compile.o
61: DPATCH_PROG = dpatch
62:
63: RCD_SRCS = rcd.c
64: RCD_OBJS = rcd.o compile.o
65: RCD_PROG = rcd
66:
67: DIRER_SRCS = direr.c
68: DIRER_OBJS = direr.o compile.o
69: DIRER_PROG = direr
70:
71: DIRCMP_SRCS = dircmp.c
72: DIRCMP_OBJS = dircmp.o compile.o
73: DIRCMP_PROG = dircmp
74:
75: XMLER_SRCS = xmler.c
76: XMLER_OBJS = xmler.o compile.o
77: XMLER_PROG = xmler
78:
79: WDOG_SRCS = wdog.c
80: WDOG_OBJS = wdog.o compile.o
81: WDOG_PROG = wdog
82:
83: ATHCTL_SRCS = athctl.c
84: ATHCTL_OBJS = athctl.o compile.o
85: ATHCTL_PROG = athctl
86:
87: DWDS_SRCS = dwds.c vap.c
88: DWDS_OBJS = dwds.o compile.o vap.o
89: DWDS_PROG = dwds
90:
91: PKGADM_SRCS = pkgadm.c
92: PKGADM_OBJS = pkgadm.o
93: PKGADM_PROG = pkgadm
94:
95:
96: all: depend \
97: ${PROG}
98:
99: .c.o: ${SRCS} compile.c
100: ${CC} -c ${CFLAGS} $<
101:
102: depend:
103: ./compile.sh
104: ${MKDEP} ${CFLAGS} ${SRCS}
105:
106: clean:
107: rm -f *.o .depend compile.c *~
108:
109: install:
110:
111: ${CFEXEC_PROG}: ${CFEXEC_OBJS}
112: ${CC} ${LDFLAGS} -o${BIN}/$@ ${CFEXEC_OBJS} ${CFEXEC_LDADD}
113:
114: ${UPDIMG_PROG}: ${UPDIMG_OBJS}
115: ${CC} ${LDFLAGS} -o${BIN}/$@ ${UPDIMG_OBJS}
116:
117: #${DUMPCFG_PROG}: ${DUMPCFG_OBJS}
118: # ${CC} ${LDFLAGS} -o${BIN}/$@ ${DUMPCFG_OBJS} ${DUMPCFG_LDADD}
119:
120: ${GET1STETH_PROG}: ${GET1STETH_OBJS}
121: ${CC} ${LDFLAGS} -o${BIN}/$@ ${GET1STETH_OBJS}
122:
123: ${DPATCH_PROG}: ${DPATCH_OBJS}
124: ${CC} ${LDFLAGS} -o${BIN}/$@ ${DPATCH_OBJS} ${DPATCH_LDADD}
125:
126: ${RCD_PROG}: ${RCD_OBJS}
127: ${CC} ${LDFLAGS} -o${BIN}/$@ ${RCD_OBJS} ${LDADD}
128:
129: ${DIRER_PROG}: ${DIRER_OBJS}
130: ${CC} ${LDFLAGS} -o${BIN}/$@ ${DIRER_OBJS} ${LDADD} ${DIRER_LDADD}
131:
132: ${DIRCMP_PROG}: ${DIRCMP_OBJS}
133: ${CC} ${LDFLAGS} -o${BIN}/$@ ${DIRCMP_OBJS} ${LDADD} ${DIRCMP_LDADD}
134:
135: ${XMLER_PROG}: ${XMLER_OBJS}
136: ${CC} ${LDFLAGS} -o${BIN}/$@ ${XMLER_OBJS} ${XMLER_LDADD}
137:
138: ${WDOG_PROG}: ${WDOG_OBJS}
139: ${CC} ${LDFLAGS} -o${BIN}/$@ ${WDOG_OBJS} ${WDOG_LDADD}
140:
141: ${ATHCTL_PROG}: ${ATHCTL_OBJS}
142: ${CC} ${LDFLAGS} -o${BIN}/$@ ${ATHCTL_OBJS} ${ATHCTL_LDADD}
143:
144: ${DWDS_PROG}: ${DWDS_OBJS}
145: ${CC} ${LDFLAGS} -o${BIN}/$@ ${DWDS_OBJS} ${DWDS_LDADD}
146:
147: ${PKGADM_PROG}: ${PKGADM_OBJS}
148: ${CC} ${LDFLAGS} -o${BIN}/$@ ${PKGADM_OBJS} ${PKGADM_LDADD}
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>