summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authormikeos <mike.osipov@gmail.com>2013-01-31 01:23:33 +0400
committermikeos <mike.osipov@gmail.com>2013-01-31 01:23:33 +0400
commit9de26ea193728ea08a3a90513bd7936be3101a37 (patch)
tree63cc6588dbd89887df67cd686cf481c50aad9d55 /Makefile
parent60a8965aaae80ad0890cb428720efa84399455e0 (diff)
add commandline options
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