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