Annotation of embedtools/src/Makefile, revision 1.1.1.1.2.3
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.3! misho 6: # $Id: Makefile,v 1.1.1.1.2.2 2009/11/13 13:51:10 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:
18: LDADD = -laitcfg
19:
20: CFLAGS = -I. -I${INC} -I${includedir} -Wall -O2 -fPIC -g
21: LDFLAGS = -L. -L${libdir}
22:
1.1.1.1.2.3! misho 23: SRCS = ${CFEXEC_SRCS} ${UPDIMG_SRCS} ${DUMPCFG_SRCS}
! 24: PROG = ${CFEXEC_PROG} ${UPDIMG_PROG} ${DUMPCFG_PROG}
1.1 misho 25:
26: CFEXEC_SRCS = cfexec.c
27: CFEXEC_OBJS = cfexec.o compile.o
28: CFEXEC_PROG = cfexec
29:
1.1.1.1.2.2 misho 30: UPDIMG_SRCS = updimg.c upd.c
31: UPDIMG_OBJS = updimg.o compile.o upd.o
32: UPDIMG_PROG = updimg
33:
1.1.1.1.2.3! misho 34: DUMPCFG_SRCS = dumpcfg.c
! 35: DUMPCFG_OBJS = dumpcfg.o compile.o
! 36: DUMPCFG_PROG = dumpcfg
! 37:
1.1 misho 38:
39: all: depend \
40: ${PROG}
41:
42: .c.o: ${SRCS} compile.c
43: ${CC} -c ${CFLAGS} $<
44:
45: depend:
46: ./compile.sh
47: ${MKDEP} ${CFLAGS} ${SRCS}
48:
49: clean:
50: rm -f *.o .depend compile.c *~
51:
52: install:
53:
54: ${CFEXEC_PROG}: ${CFEXEC_OBJS}
55: ${CC} ${LDFLAGS} -o${BIN}/$@ ${CFEXEC_OBJS} ${LDADD}
1.1.1.1.2.2 misho 56:
57: ${UPDIMG_PROG}: ${UPDIMG_OBJS}
58: ${CC} ${LDFLAGS} -o${BIN}/$@ ${UPDIMG_OBJS}
1.1.1.1.2.3! misho 59:
! 60: ${DUMPCFG_PROG}: ${DUMPCFG_OBJS}
! 61: ${CC} ${LDFLAGS} -o${BIN}/$@ ${DUMPCFG_OBJS} ${LDADD}
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>