Commit 8bd44677 authored by Peter Eisentraut's avatar Peter Eisentraut

entab: Improve makefile

A few simplifications and stylistic improvements, found while grepping
around for makefile problems elsewhere.
parent 225d9c06
...@@ -5,17 +5,11 @@ ...@@ -5,17 +5,11 @@
TARGET = entab TARGET = entab
BINDIR = /usr/local/bin BINDIR = /usr/local/bin
XFLAGS = XFLAGS =
CFLAGS = -O CFLAGS = -O $(XFLAGS)
LIBS = LIBS =
$(TARGET) : entab.o halt.o $(TARGET): entab.o halt.o
$(CC) -o $(TARGET) $(XFLAGS) $(CFLAGS) entab.o halt.o $(LIBS) $(CC) -o $@ $(CFLAGS) $^ $(LIBS)
entab.o : entab.c
$(CC) -c $(XFLAGS) $(CFLAGS) entab.c
halt.o : halt.c
$(CC) -c $(XFLAGS) $(CFLAGS) halt.c
clean: clean:
rm -f *.o $(TARGET) log core rm -f *.o $(TARGET) log core
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment