提交 8bd44677 编写于 作者: P Peter Eisentraut

entab: Improve makefile

A few simplifications and stylistic improvements, found while grepping
around for makefile problems elsewhere.
上级 225d9c06
......@@ -5,17 +5,11 @@
TARGET = entab
BINDIR = /usr/local/bin
XFLAGS =
CFLAGS = -O
CFLAGS = -O $(XFLAGS)
LIBS =
$(TARGET) : entab.o halt.o
$(CC) -o $(TARGET) $(XFLAGS) $(CFLAGS) entab.o halt.o $(LIBS)
entab.o : entab.c
$(CC) -c $(XFLAGS) $(CFLAGS) entab.c
halt.o : halt.c
$(CC) -c $(XFLAGS) $(CFLAGS) halt.c
$(TARGET): entab.o halt.o
$(CC) -o $@ $(CFLAGS) $^ $(LIBS)
clean:
rm -f *.o $(TARGET) log core
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册