aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPeter Eisentraut <peter_e@gmx.net>2012-04-24 21:20:55 +0300
committerPeter Eisentraut <peter_e@gmx.net>2012-04-24 21:20:55 +0300
commit8bd44677df7f5139afa6d6a2d8f5a92e2db54cba (patch)
tree75fde9a96b75a503f06c376143a176b4a02917d1 /src
parent225d9c063820237c979c918cf735bf98cbd566c0 (diff)
downloadpostgresql-8bd44677df7f5139afa6d6a2d8f5a92e2db54cba.tar.gz
postgresql-8bd44677df7f5139afa6d6a2d8f5a92e2db54cba.zip
entab: Improve makefile
A few simplifications and stylistic improvements, found while grepping around for makefile problems elsewhere.
Diffstat (limited to 'src')
-rw-r--r--src/tools/entab/Makefile12
1 files changed, 3 insertions, 9 deletions
diff --git a/src/tools/entab/Makefile b/src/tools/entab/Makefile
index 6372971fc04..00be1f5ee73 100644
--- a/src/tools/entab/Makefile
+++ b/src/tools/entab/Makefile
@@ -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