X-Git-Url: https://git.harvie.cz/?a=blobdiff_plain;ds=sidebyside;f=Makefile;h=a47818e20b3c3d17576f797daa459ad98910ae83;hb=9a56ab25128074e581fa5f69bac8afa2fb939c82;hp=35a1f60e4e2e7d3c1bb972465ddaa1065183ca64;hpb=208112af094ee6be512e5f4d60ca6051f0908cff;p=svn%2FPrometheus-QoS%2F.git diff --git a/Makefile b/Makefile index 35a1f60..a47818e 100644 --- a/Makefile +++ b/Makefile @@ -5,9 +5,16 @@ 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)