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