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