Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

39 lines (26 sloc) 0.514 kB
CFLAGS = -g -Wall $(OFLAGS) $(XFLAGS)
OFLAGS = -O3 -DNDEBUG
CC = gcc
#OFLAGS = -pg
OBJS = tree.o compile.o
all : greg
greg : greg.o $(OBJS)
$(CC) $(CFLAGS) -o $@-new greg.o $(OBJS)
mv $@-new $@
ROOT =
PREFIX = /usr/local
BINDIR = $(ROOT)$(PREFIX)/bin
install : $(BINDIR)/greg
$(BINDIR)/% : %
cp -p $< $@
strip $@
uninstall : .FORCE
rm -f $(BINDIR)/greg
greg.o : greg.c
grammar : .FORCE
./greg -o greg.c greg.g
clean : .FORCE
rm -f *~ *.o *.greg.[cd]
spotless : clean .FORCE
rm -f greg
.FORCE :
Jump to Line
Something went wrong with that request. Please try again.