Annotation of embedtools/src/Makefile, revision 1.1.1.1.2.1
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.1! misho 6: # $Id: Makefile,v 1.1.1.1 2009/11/12 10:35:55 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:
23: SRCS = ${CFEXEC_SRCS}
24: PROG = ${CFEXEC_PROG}
25:
26: CFEXEC_SRCS = cfexec.c
27: CFEXEC_OBJS = cfexec.o compile.o
28: CFEXEC_PROG = cfexec
29:
30:
31: all: depend \
32: ${PROG}
33:
34: .c.o: ${SRCS} compile.c
35: ${CC} -c ${CFLAGS} $<
36:
37: depend:
38: ./compile.sh
39: ${MKDEP} ${CFLAGS} ${SRCS}
40:
41: clean:
42: rm -f *.o .depend compile.c *~
43:
44: install:
45:
46: ${CFEXEC_PROG}: ${CFEXEC_OBJS}
47: ${CC} ${LDFLAGS} -o${BIN}/$@ ${CFEXEC_OBJS} ${LDADD}
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>