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