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