comparison objgrep/Makefile @ 174:10c0cdc18208

objgrep-fe written, compiles
author Michael Spacefalcon <msokolov@ivan.Harhan.ORG>
date Fri, 04 Jul 2014 08:46:32 +0000
parents ddbfc1a1a811
children
comparison
equal deleted inserted replaced
173:77cd647375e5 174:10c0cdc18208
1 CC= gcc 1 CC= gcc
2 CFLAGS= -O2 2 CFLAGS= -O2
3 PROG= objgrep 3 PROGS= objgrep objgrep-fe
4 OBJS= dumpmatch.o globals.o grep.o lowlevel.o main.o mkpattern.o tables.o 4 OBJS= dumpmatch.o globals.o grep.o lowlevel.o main.o mkpattern.o tables.o
5 HDRS= coffconst.h filestruct.h globals.h intstruct.h 5 HDRS= coffconst.h filestruct.h globals.h intstruct.h
6 6
7 all: ${PROG} 7 all: ${PROGS}
8 8
9 ${PROG}: ${OBJS} 9 objgrep: ${OBJS}
10 ${CC} -o $@ ${OBJS} 10 ${CC} -o $@ ${OBJS}
11 11
12 ${OBJS}: ${HDRS} 12 ${OBJS}: ${HDRS}
13 13
14 objgrep-fe: frontend.c
15 ${CC} ${CFLAGS} -o $@ frontend.c
16
14 install: 17 install:
15 install -c -o bin -g bin -m 755 ${PROG} /usr/local/bin 18 install -c -o bin -g bin -m 755 ${PROGS} /usr/local/bin
16 19
17 clean: 20 clean:
18 rm -f *.o ${PROG} *errs 21 rm -f *.o ${PROGS} *errs