Annotation of embedtools/src/Makefile, revision 1.1.1.1.2.4
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.4! misho 6: # $Id: Makefile,v 1.1.1.1.2.3 2009/11/25 11:58:43 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.4! misho 23: SRCS = ${CFEXEC_SRCS} ${UPDIMG_SRCS} ${DUMPCFG_SRCS} ${GET1STETH_SRCS}
! 24: PROG = ${CFEXEC_PROG} ${UPDIMG_PROG} ${DUMPCFG_PROG} ${GET1STETH_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.4! misho 34: DUMPCFG_SRCS = dumpcfg.c dumpz.c
! 35: DUMPCFG_OBJS = dumpcfg.o compile.o dumpz.o
1.1.1.1.2.3 misho 36: DUMPCFG_PROG = dumpcfg
37:
1.1.1.1.2.4! misho 38: GET1STETH_SRCS = get1steth.c
! 39: GET1STETH_OBJS = get1steth.o
! 40: GET1STETH_PROG = get1steth
! 41:
1.1 misho 42:
43: all: depend \
44: ${PROG}
45:
46: .c.o: ${SRCS} compile.c
47: ${CC} -c ${CFLAGS} $<
48:
49: depend:
50: ./compile.sh
51: ${MKDEP} ${CFLAGS} ${SRCS}
52:
53: clean:
54: rm -f *.o .depend compile.c *~
55:
56: install:
57:
58: ${CFEXEC_PROG}: ${CFEXEC_OBJS}
59: ${CC} ${LDFLAGS} -o${BIN}/$@ ${CFEXEC_OBJS} ${LDADD}
1.1.1.1.2.2 misho 60:
61: ${UPDIMG_PROG}: ${UPDIMG_OBJS}
62: ${CC} ${LDFLAGS} -o${BIN}/$@ ${UPDIMG_OBJS}
1.1.1.1.2.3 misho 63:
64: ${DUMPCFG_PROG}: ${DUMPCFG_OBJS}
65: ${CC} ${LDFLAGS} -o${BIN}/$@ ${DUMPCFG_OBJS} ${LDADD}
1.1.1.1.2.4! misho 66:
! 67: ${GET1STETH_PROG}: ${GET1STETH_OBJS}
! 68: ${CC} ${LDFLAGS} -o${BIN}/$@ ${GET1STETH_OBJS}
FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>