view objgrep/Makefile @ 236:9ee2d1d91f7e

pirelli/fw-disasm: Cust_Init_Layer1() and madc_hex_2_physical() located
author Mychaela Falconia <falcon@freecalypso.org>
date Fri, 22 Dec 2017 06:10:26 +0000
parents 10c0cdc18208
children
line wrap: on
line source

CC=	gcc
CFLAGS=	-O2
PROGS=	objgrep objgrep-fe
OBJS=	dumpmatch.o globals.o grep.o lowlevel.o main.o mkpattern.o tables.o
HDRS=	coffconst.h filestruct.h globals.h intstruct.h

all:	${PROGS}

objgrep: ${OBJS}
	${CC} -o $@ ${OBJS}

${OBJS}: ${HDRS}

objgrep-fe:	frontend.c
	${CC} ${CFLAGS} -o $@ frontend.c

install:
	install -c -o bin -g bin -m 755 ${PROGS} /usr/local/bin

clean:
	rm -f *.o ${PROGS} *errs