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