Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 8bd4467

Browse files
committed
entab: Improve makefile
A few simplifications and stylistic improvements, found while grepping around for makefile problems elsewhere.
1 parent 225d9c0 commit 8bd4467

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

src/tools/entab/Makefile

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,11 @@
55
TARGET = entab
66
BINDIR = /usr/local/bin
77
XFLAGS =
8-
CFLAGS = -O
8+
CFLAGS = -O $(XFLAGS)
99
LIBS =
1010

11-
$(TARGET) : entab.o halt.o
12-
$(CC) -o $(TARGET) $(XFLAGS) $(CFLAGS) entab.o halt.o $(LIBS)
13-
14-
entab.o : entab.c
15-
$(CC) -c $(XFLAGS) $(CFLAGS) entab.c
16-
17-
halt.o : halt.c
18-
$(CC) -c $(XFLAGS) $(CFLAGS) halt.c
11+
$(TARGET): entab.o halt.o
12+
$(CC) -o $@ $(CFLAGS) $^ $(LIBS)
1913

2014
clean:
2115
rm -f *.o $(TARGET) log core

0 commit comments

Comments
 (0)