# Makefile for gexpr
# Last updated: 10 February 1999
OPTS = ${CFLAGS} ${CPPFLAGS}
OBJS = eval.o read_token.o commands.o output.o errors.o gexpr.o
GEXPR = gexpr
LIBS = -lm ${LDFLAGS}
all: $(GEXPR)
$(GEXPR): $(OBJS)
$(CC) $(OPTS) -o $(GEXPR) $(OBJS) $(LIBS)
eval.o: eval.c gexpr.h
$(CC) $(OPTS) -c eval.c
read_token.o: read_token.c gexpr.h
$(CC) $(OPTS) -c read_token.c
commands.o: commands.c gexpr.h
$(CC) $(OPTS) -c commands.c
output.o: output.c
$(CC) $(OPTS) -c output.c
errors.o: errors.c
$(CC) $(OPTS) -c errors.c
gexpr.o: gexpr.c
$(CC) $(OPTS) -c gexpr.c
install:
cp -f gexpr /usr/local/bin;
cp -f gexpr.1 /usr/local/man/man1
clean:
rm -f *.o core
syntax highlighted by Code2HTML, v. 0.9.1