X-Git-Url: https://git.harvie.cz/?p=svn%2FPrometheus-QoS%2F.git;a=blobdiff_plain;f=Makefile;h=a47818e20b3c3d17576f797daa459ad98910ae83;hp=0c98b1737dd35c4afea1b47063c4a41107aac1a9;hb=9a56ab25128074e581fa5f69bac8afa2fb939c82;hpb=b17a255ff81c823eb399f66001df8d4a8f9f23d3 diff --git a/Makefile b/Makefile index 0c98b17..a47818e 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 htmlandlogs.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)