Annotation of embedtools/src/Makefile, revision 1.1.1.1.2.21
1.1 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.1.1.1.2.21! misho 6: # $Id: Makefile,v 1.1.1.1.2.20 2010/10/27 13:10:40 misho Exp $
1.1 misho 7: #
8:
9: includedir = /usr/local/include
10: libdir = /usr/local/lib
11:
1.1.1.1.2.1 misho 12: CC = cc
1.1 misho 13: MKDEP = mkdep
14:
15: BIN = ../bin
16: INC = ../inc
17:
1.1.1.1.2.12 misho 18: LDADD = -laitcrc
1.1.1.1.2.6 misho 19: CFEXEC_LDADD = ${LDADD} -laitcfg
1.1.1.1.2.7 misho 20: #DUMPCFG_LDADD = ${LDADD} -laitcfg
1.1.1.1.2.12 misho 21: DPATCH_LDADD = ${LDADD} -laitsync -lcrypto
22: DIRER_LDADD = ${LDADD} -lcrypto -laitio -laitsync
23: DIRCMP_LDADD = ${LDADD} -lcrypto -laitsync
1.1.1.1.2.15 misho 24: #XMLER_LDADD = ${LDADD} -laitio ${libdir}/libaxl.a ${libdir}/libaxl-ns.a
25: XMLER_LDADD = ${LDADD} -laitio -laxl -laxl-ns
1.1.1.1.2.18 misho 26: WDOG_LDADD =
1.1.1.1.2.16 misho 27: CLOG_LDADD =
1.1.1.1.2.19 misho 28: ATHCTL_LDADD =
1.1.1.1.2.21! misho 29: DWDS_LDADD = ${LDADD} -laitio -laitcfg
1.1.1.1.2.17 misho 30: SYSLOGD_LDADD = -lutil
1.1 misho 31:
1.1.1.1.2.17 misho 32: CFLAGS = -I. -I${INC} -I${includedir} -I${includedir}/axl -Wall -O2 -fPIC -g -DINET6
1.1 misho 33: LDFLAGS = -L. -L${libdir}
34:
1.1.1.1.2.13 misho 35: SRCS = ${CFEXEC_SRCS} ${UPDIMG_SRCS} ${GET1STETH_SRCS} ${DPATCH_SRCS} ${RCD_SRCS} \
1.1.1.1.2.19 misho 36: ${DIRER_SRCS} ${DIRCMP_SRCS} ${XMLER_SRCS} ${CLOG_SRCS} ${SYSLOGD_SRCS} \
1.1.1.1.2.20 misho 37: ${WDOG_SRCS} ${ATHCTL_SRCS} ${DWDS_SRCS}
1.1.1.1.2.13 misho 38: PROG = ${CFEXEC_PROG} ${UPDIMG_PROG} ${GET1STETH_PROG} ${DPATCH_PROG} ${RCD_PROG} \
1.1.1.1.2.19 misho 39: ${DIRER_PROG} ${DIRCMP_PROG} ${XMLER_PROG} ${CLOG_PROG} ${SYSLOGD_PROG} \
1.1.1.1.2.20 misho 40: ${WDOG_PROG} ${ATHCTL_PROG} ${DWDS_PROG}
1.1 misho 41:
42: CFEXEC_SRCS = cfexec.c
43: CFEXEC_OBJS = cfexec.o compile.o
44: CFEXEC_PROG = cfexec
45:
1.1.1.1.2.2 misho 46: UPDIMG_SRCS = updimg.c upd.c
47: UPDIMG_OBJS = updimg.o compile.o upd.o
48: UPDIMG_PROG = updimg
49:
1.1.1.1.2.7 misho 50: #DUMPCFG_SRCS = dumpcfg.c dumpz.c
51: #DUMPCFG_OBJS = dumpcfg.o compile.o dumpz.o
52: #DUMPCFG_PROG = dumpcfg
1.1.1.1.2.3 misho 53:
1.1.1.1.2.4 misho 54: GET1STETH_SRCS = get1steth.c
1.1.1.1.2.5 misho 55: GET1STETH_OBJS = get1steth.o compile.o
1.1.1.1.2.4 misho 56: GET1STETH_PROG = get1steth
57:
1.1.1.1.2.6 misho 58: DPATCH_SRCS = dpatch.c
59: DPATCH_OBJS = dpatch.o compile.o
60: DPATCH_PROG = dpatch
61:
1.1.1.1.2.8 misho 62: RCD_SRCS = rcd.c
63: RCD_OBJS = rcd.o compile.o
64: RCD_PROG = rcd
65:
1.1.1.1.2.10 misho 66: DIRER_SRCS = direr.c
67: DIRER_OBJS = direr.o compile.o
68: DIRER_PROG = direr
69:
1.1.1.1.2.11 misho 70: DIRCMP_SRCS = dircmp.c
71: DIRCMP_OBJS = dircmp.o compile.o
72: DIRCMP_PROG = dircmp
73:
1.1.1.1.2.13 misho 74: XMLER_SRCS = xmler.c
75: XMLER_OBJS = xmler.o compile.o
76: XMLER_PROG = xmler
77:
1.1.1.1.2.16 misho 78: CLOG_SRCS = clog.c
79: CLOG_OBJS = clog.o compile.o
80: CLOG_PROG = clog
81:
1.1.1.1.2.17 misho 82: SYSLOGD_SRCS = syslogd.c
83: SYSLOGD_OBJS = syslogd.o compile.o
84: SYSLOGD_PROG = syslogd
85:
1.1.1.1.2.18 misho 86: WDOG_SRCS = wdog.c
87: WDOG_OBJS = wdog.o compile.o
88: WDOG_PROG = wdog
89:
1.1.1.1.2.19 misho 90: ATHCTL_SRCS = athctl.c
91: ATHCTL_OBJS = athctl.o compile.o
92: ATHCTL_PROG = athctl
93:
1.1.1.1.2.21! misho 94: DWDS_SRCS = dwds.c vap.c
! 95: DWDS_OBJS = dwds.o compile.o vap.o
1.1.1.1.2.20 misho 96: DWDS_PROG = dwds
97:
1.1 misho 98:
99: all: depend \
100: ${PROG}
101:
102: .c.o: ${SRCS} compile.c
103: ${CC} -c ${CFLAGS} $<
104:
105: depend:
106: ./compile.sh
107: ${MKDEP} ${CFLAGS} ${SRCS}
108:
109: clean:
110: rm -f *.o .depend compile.c *~
111:
112: install:
113:
114: ${CFEXEC_PROG}: ${CFEXEC_OBJS}
1.1.1.1.2.6 misho 115: ${CC} ${LDFLAGS} -o${BIN}/$@ ${CFEXEC_OBJS} ${CFEXEC_LDADD}
1.1.1.1.2.2 misho 116:
117: ${UPDIMG_PROG}: ${UPDIMG_OBJS}
118: ${CC} ${LDFLAGS} -o${BIN}/$@ ${UPDIMG_OBJS}
1.1.1.1.2.3 misho 119:
1.1.1.1.2.7 misho 120: #${DUMPCFG_PROG}: ${DUMPCFG_OBJS}
121: # ${CC} ${LDFLAGS} -o${BIN}/$@ ${DUMPCFG_OBJS} ${DUMPCFG_LDADD}
1.1.1.1.2.4 misho 122:
123: ${GET1STETH_PROG}: ${GET1STETH_OBJS}
124: ${CC} ${LDFLAGS} -o${BIN}/$@ ${GET1STETH_OBJS}
1.1.1.1.2.6 misho 125:
126: ${DPATCH_PROG}: ${DPATCH_OBJS}
127: ${CC} ${LDFLAGS} -o${BIN}/$@ ${DPATCH_OBJS} ${DPATCH_LDADD}
1.1.1.1.2.8 misho 128:
129: ${RCD_PROG}: ${RCD_OBJS}
130: ${CC} ${LDFLAGS} -o${BIN}/$@ ${RCD_OBJS} ${LDADD}
1.1.1.1.2.10 misho 131:
132: ${DIRER_PROG}: ${DIRER_OBJS}
133: ${CC} ${LDFLAGS} -o${BIN}/$@ ${DIRER_OBJS} ${LDADD} ${DIRER_LDADD}
1.1.1.1.2.11 misho 134:
135: ${DIRCMP_PROG}: ${DIRCMP_OBJS}
136: ${CC} ${LDFLAGS} -o${BIN}/$@ ${DIRCMP_OBJS} ${LDADD} ${DIRCMP_LDADD}
1.1.1.1.2.13 misho 137:
138: ${XMLER_PROG}: ${XMLER_OBJS}
139: ${CC} ${LDFLAGS} -o${BIN}/$@ ${XMLER_OBJS} ${XMLER_LDADD}
1.1.1.1.2.16 misho 140:
141: ${CLOG_PROG}: ${CLOG_OBJS}
142: ${CC} ${LDFLAGS} -o${BIN}/$@ ${CLOG_OBJS} ${CLOG_LDADD}
1.1.1.1.2.17 misho 143:
144: ${SYSLOGD_PROG}: ${SYSLOGD_OBJS}
145: ${CC} ${LDFLAGS} -o${BIN}/$@ ${SYSLOGD_OBJS} ${SYSLOGD_LDADD}
1.1.1.1.2.18 misho 146:
147: ${WDOG_PROG}: ${WDOG_OBJS}
148: ${CC} ${LDFLAGS} -o${BIN}/$@ ${WDOG_OBJS} ${WDOG_LDADD}
1.1.1.1.2.19 misho 149:
150: ${ATHCTL_PROG}: ${ATHCTL_OBJS}
151: ${CC} ${LDFLAGS} -o${BIN}/$@ ${ATHCTL_OBJS} ${ATHCTL_LDADD}
1.1.1.1.2.20 misho 152:
153: ${DWDS_PROG}: ${DWDS_OBJS}
154: ${CC} ${LDFLAGS} -o${BIN}/$@ ${DWDS_OBJS} ${DWDS_LDADD}
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>