home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
GEMini Atari
/
GEMini_Atari_CD-ROM_Walnut_Creek_December_1993.iso
/
files
/
gnu
/
grep
/
makefile.mnx
< prev
next >
Wrap
Makefile
|
1989-03-02
|
865b
|
41 lines
#
# Makefile for GNU e?grep
#
CROSSDIR = /dsrg/bammi/cross-minix
CROSSBIN = $(CROSSDIR)/bin
# Add -DUSG for System V.
CC= $(CROSSBIN)/mgcc
CFLAGS = -O -D__NO_PROTO__ -DATARI_ST
# You may add getopt.o if your C library lacks getopt(); note that
# 4.3BSD getopt() is said to be somewhat broken.
# Add alloca.o if your machine does not support alloca().
OBJS = dfa.o regex.o
GOBJ = grep.o
EOBJ = egrep.o
# Space provided for machine dependent libraries.
LIBS =
all: grep egrep
regress: grep
cd tests; sh regress.sh
egrep: $(OBJS) $(EOBJ)
$(CC) $(CFLAGS) -o egrep $(OBJS) $(EOBJ) $(LIBS) -s
egrep.o: grep.c
$(CC) $(CFLAGS) -DEGREP -c grep.c
mv grep.o egrep.o
grep: $(OBJS) $(GOBJ)
$(CC) $(CFLAGS) -o grep $(OBJS) $(GOBJ) $(LIBS) -s
clean:
rm -f grep egrep *.o core tests/core tests/tmp.script
dfa.o egrep.o grep.o: dfa.h
egrep.o grep.o regex.o: regex.h