X-Git-Url: https://git.harvie.cz/?a=blobdiff_plain;f=Makefile;h=439c7ac6972384cefb3a57ee38da9978bf5a5249;hb=1ab008b9af1556f1bcba85b2d262fa83b617f01e;hp=0c98b1737dd35c4afea1b47063c4a41107aac1a9;hpb=b17a255ff81c823eb399f66001df8d4a8f9f23d3;p=svn%2FPrometheus-QoS%2F.git diff --git a/Makefile b/Makefile index 0c98b17..439c7ac 100644 --- a/Makefile +++ b/Makefile @@ -1,13 +1,20 @@ PACKAGE=prometheus -VERSION=0.8.1 +VERSION=0.8.2 CFLAGS=-std=c99 -Wall prefix=/usr mandir=$(prefix)/share/man sbindir=$(prefix)/sbin sysconfdir=/etc +OBJECTS=parsehosts.o parselogs.o ipv4subnets.o json.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 debian/prometheus.debian @@ -38,4 +45,4 @@ install: main clean: rm -f prometheus - rm -f optinal-tools/prometheus-stats + rm -f $(OBJECTS)