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