Annotation of embedtools/src/Makefile, revision 1.1.1.1.2.12
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.12! misho 6: # $Id: Makefile,v 1.1.1.1.2.11 2010/07/13 08:59:48 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 misho 24:
25: CFLAGS = -I. -I${INC} -I${includedir} -Wall -O2 -fPIC -g
26: LDFLAGS = -L. -L${libdir}
27:
1.1.1.1.2.7 misho 28: #SRCS = ${CFEXEC_SRCS} ${UPDIMG_SRCS} ${DUMPCFG_SRCS} ${GET1STETH_SRCS} ${DPATCH_SRCS}
29: #PROG = ${CFEXEC_PROG} ${UPDIMG_PROG} ${DUMPCFG_PROG} ${GET1STETH_PROG} ${DPATCH_PROG}
1.1.1.1.2.11 misho 30: SRCS = ${CFEXEC_SRCS} ${UPDIMG_SRCS} ${GET1STETH_SRCS} ${DPATCH_SRCS} ${RCD_SRCS} ${DIRER_SRCS} ${DIRCMP_SRCS}
31: PROG = ${CFEXEC_PROG} ${UPDIMG_PROG} ${GET1STETH_PROG} ${DPATCH_PROG} ${RCD_PROG} ${DIRER_PROG} ${DIRCMP_PROG}
1.1 misho 32:
33: CFEXEC_SRCS = cfexec.c
34: CFEXEC_OBJS = cfexec.o compile.o
35: CFEXEC_PROG = cfexec
36:
1.1.1.1.2.2 misho 37: UPDIMG_SRCS = updimg.c upd.c
38: UPDIMG_OBJS = updimg.o compile.o upd.o
39: UPDIMG_PROG = updimg
40:
1.1.1.1.2.7 misho 41: #DUMPCFG_SRCS = dumpcfg.c dumpz.c
42: #DUMPCFG_OBJS = dumpcfg.o compile.o dumpz.o
43: #DUMPCFG_PROG = dumpcfg
1.1.1.1.2.3 misho 44:
1.1.1.1.2.4 misho 45: GET1STETH_SRCS = get1steth.c
1.1.1.1.2.5 misho 46: GET1STETH_OBJS = get1steth.o compile.o
1.1.1.1.2.4 misho 47: GET1STETH_PROG = get1steth
48:
1.1.1.1.2.6 misho 49: DPATCH_SRCS = dpatch.c
50: DPATCH_OBJS = dpatch.o compile.o
51: DPATCH_PROG = dpatch
52:
1.1.1.1.2.8 misho 53: RCD_SRCS = rcd.c
54: RCD_OBJS = rcd.o compile.o
55: RCD_PROG = rcd
56:
1.1.1.1.2.10 misho 57: DIRER_SRCS = direr.c
58: DIRER_OBJS = direr.o compile.o
59: DIRER_PROG = direr
60:
1.1.1.1.2.11 misho 61: DIRCMP_SRCS = dircmp.c
62: DIRCMP_OBJS = dircmp.o compile.o
63: DIRCMP_PROG = dircmp
64:
1.1 misho 65:
66: all: depend \
67: ${PROG}
68:
69: .c.o: ${SRCS} compile.c
70: ${CC} -c ${CFLAGS} $<
71:
72: depend:
73: ./compile.sh
74: ${MKDEP} ${CFLAGS} ${SRCS}
75:
76: clean:
77: rm -f *.o .depend compile.c *~
78:
79: install:
80:
81: ${CFEXEC_PROG}: ${CFEXEC_OBJS}
1.1.1.1.2.6 misho 82: ${CC} ${LDFLAGS} -o${BIN}/$@ ${CFEXEC_OBJS} ${CFEXEC_LDADD}
1.1.1.1.2.2 misho 83:
84: ${UPDIMG_PROG}: ${UPDIMG_OBJS}
85: ${CC} ${LDFLAGS} -o${BIN}/$@ ${UPDIMG_OBJS}
1.1.1.1.2.3 misho 86:
1.1.1.1.2.7 misho 87: #${DUMPCFG_PROG}: ${DUMPCFG_OBJS}
88: # ${CC} ${LDFLAGS} -o${BIN}/$@ ${DUMPCFG_OBJS} ${DUMPCFG_LDADD}
1.1.1.1.2.4 misho 89:
90: ${GET1STETH_PROG}: ${GET1STETH_OBJS}
91: ${CC} ${LDFLAGS} -o${BIN}/$@ ${GET1STETH_OBJS}
1.1.1.1.2.6 misho 92:
93: ${DPATCH_PROG}: ${DPATCH_OBJS}
94: ${CC} ${LDFLAGS} -o${BIN}/$@ ${DPATCH_OBJS} ${DPATCH_LDADD}
1.1.1.1.2.8 misho 95:
96: ${RCD_PROG}: ${RCD_OBJS}
97: ${CC} ${LDFLAGS} -o${BIN}/$@ ${RCD_OBJS} ${LDADD}
1.1.1.1.2.10 misho 98:
99: ${DIRER_PROG}: ${DIRER_OBJS}
100: ${CC} ${LDFLAGS} -o${BIN}/$@ ${DIRER_OBJS} ${LDADD} ${DIRER_LDADD}
1.1.1.1.2.11 misho 101:
102: ${DIRCMP_PROG}: ${DIRCMP_OBJS}
103: ${CC} ${LDFLAGS} -o${BIN}/$@ ${DIRCMP_OBJS} ${LDADD} ${DIRCMP_LDADD}
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>