sbm

simple bandwidth monitor
git clone git://git.2f30.org/sbm.git
Log | Files | Refs | LICENSE

Makefile (713B)


      1 VERSION = 0.9
      2 
      3 PREFIX = /usr/local
      4 MANPREFIX = $(PREFIX)/man
      5 
      6 CFLAGS = -Wall
      7 
      8 OBJ = sbm.o
      9 BIN = sbm
     10 
     11 all: $(BIN)
     12 
     13 $(BIN): $(OBJ)
     14 	$(CC) $(CFLAGS) $(CPPFLAGS) -o $@ $(OBJ) $(LDFLAGS)
     15 
     16 sbm.o: arg.h
     17 
     18 install: all
     19 	mkdir -p $(DESTDIR)$(PREFIX)/bin
     20 	cp -f $(BIN) $(DESTDIR)$(PREFIX)/bin
     21 	mkdir -p $(DESTDIR)$(MANPREFIX)/man1
     22 	cp -f $(BIN).1 $(DESTDIR)$(MANPREFIX)/man1
     23 
     24 uninstall:
     25 	rm -f $(DESTDIR)$(PREFIX)/bin/$(BIN)
     26 	rm -f $(DESTDIR)$(MANPREFIX)/man1/$(BIN).1
     27 
     28 dist: clean
     29 	mkdir -p sbm-$(VERSION)
     30 	cp LICENSE Makefile arg.h sbm-plot sbm-rt-plot sbm.1 sbm.c sbm-$(VERSION)
     31 	tar -cf sbm-$(VERSION).tar sbm-$(VERSION)
     32 	gzip sbm-$(VERSION).tar
     33 	rm -rf sbm-$(VERSION)
     34 
     35 clean:
     36 	rm -f $(BIN) $(OBJ) sbm-$(VERSION).tar.gz