more IPs allowed in identical IPv6 uplink network
[svn/Prometheus-QoS/.git] / Makefile
index 98df055..5f3a608 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,27 +1,31 @@
 PACKAGE=prometheus
-VERSION=0.7.8
+VERSION=0.8.2
 CFLAGS=-std=c99 -Wall
 prefix=/usr
 mandir=$(prefix)/share/man
 sbindir=$(prefix)/sbin
-sysconfdir=/etc/
+sysconfdir=/etc
+OBJECTS=parsehosts.o networks.o parseiptables.o parselogs.o ipv4subnets.o ipv6subnets.o json.o htmlandlogs.o help.o prometheus.o
+HEADERS=cll1-0.6.2.h ipstruct.h
 
 main: prometheus
-       $(CC) -o prometheus prometheus.c
+
+%.o: %.c $(HEADERS)
+       gcc -c $< -o $@
+
+prometheus: $(OBJECTS)
+       $(CC) $(OBJECTS) -o prometheus
 
 deb: main
-       arch=`dpkg-architecture -qDEB_HOST_ARCH`
-       maintainer="gandalf <gandalf@arachne.cz>"
-       #patch -Nl <debian/prometheus.patch
-       sed -e "s/__ARCHITECTURE__/$(arch)/" -e "s/__VERSION__/($VERSION)/" -e "s/__PACKAGE__/($PACKAGE)/" -e "s/__MAINTAINER__/$(maintainer)/" debian/prometheus.control > debian/control
-       dpkg-buildpackage
+       debian/prometheus.debian
+       dpkg-buildpackage -rfakeroot
 
 tgz: clean
        cp -r . ../$(PACKAGE)-$(VERSION)
        rm -rf ../$(PACKAGE)-$(VERSION)/.svn/
        rm -rf ../$(PACKAGE)-$(VERSION)/*/.svn/
        rm -rf ../$(PACKAGE)-$(VERSION)/*~ $(PACKAGE)-$(VERSION)/*/*~
-       tar -czf $(PACKAGE)-$(VERSION).tar.gz ../$(PACKAGE)-$(VERSION)
+       tar -czf ../$(PACKAGE)-$(VERSION).tar.gz ../$(PACKAGE)-$(VERSION)
        rm -rf ../$(PACKAGE)-$(VERSION)
 
 install: main
@@ -41,4 +45,4 @@ install: main
 
 clean:
        rm -f prometheus
-       rm -f optinal-tools/prometheus-stats
+       rm -f $(OBJECTS)
This page took 0.1538 seconds and 4 git commands to generate.