diff options
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -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 |
