summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index b7738ce..c038465 100644
--- a/Makefile
+++ b/Makefile
@@ -1,13 +1,14 @@
PROG = $(shell pwd | xargs basename)
+PROG_STAT = $(PROG)_stat
OBJECTS = main.o buffer.o xwrap.o
CFLAGS = -O2 -Wall -D_GNU_SOURCE -DNDEBUG -DNOCOLOR -DPROGNAME=\"$(PROG)\"
-all: $(PROG) tcpstat
+all: $(PROG) $(PROG_STAT)
$(PROG): $(OBJECTS)
gcc -s -o $@ $(OBJECTS)
-tcpstat: tcpstat.o
+$(PROG)_stat: stat.o
gcc -s -o $@ $<
%.o: %.c