Annotation of embedtools/src/Makefile, revision 1.1.1.1.2.2
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.2! misho 6: # $Id: Makefile,v 1.1.1.1.2.1 2009/11/12 12:36:37 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.2! misho 23: SRCS = ${CFEXEC_SRCS} ${UPDIMG_SRCS}
! 24: PROG = ${CFEXEC_PROG} ${UPDIMG_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 misho 34:
35: all: depend \
36: ${PROG}
37:
38: .c.o: ${SRCS} compile.c
39: ${CC} -c ${CFLAGS} $<
40:
41: depend:
42: ./compile.sh
43: ${MKDEP} ${CFLAGS} ${SRCS}
44:
45: clean:
46: rm -f *.o .depend compile.c *~
47:
48: install:
49:
50: ${CFEXEC_PROG}: ${CFEXEC_OBJS}
51: ${CC} ${LDFLAGS} -o${BIN}/$@ ${CFEXEC_OBJS} ${LDADD}
1.1.1.1.2.2! misho 52:
! 53: ${UPDIMG_PROG}: ${UPDIMG_OBJS}
! 54: ${CC} ${LDFLAGS} -o${BIN}/$@ ${UPDIMG_OBJS}
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>