From 9de26ea193728ea08a3a90513bd7936be3101a37 Mon Sep 17 00:00:00 2001 From: mikeos Date: Thu, 31 Jan 2013 01:23:33 +0400 Subject: add commandline options --- Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'Makefile') 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 -- cgit v1.2.3-70-g09d2