diff options
| author | mikeos <mike.osipov@gmail.com> | 2013-01-31 01:23:33 +0400 |
|---|---|---|
| committer | mikeos <mike.osipov@gmail.com> | 2013-01-31 01:23:33 +0400 |
| commit | 9de26ea193728ea08a3a90513bd7936be3101a37 (patch) | |
| tree | 63cc6588dbd89887df67cd686cf481c50aad9d55 /Makefile | |
| parent | 60a8965aaae80ad0890cb428720efa84399455e0 (diff) | |
add commandline 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 |
