X-Git-Url: https://git.harvie.cz/?a=blobdiff_plain;f=Makefile;h=1719e109ae75b7029548e84f0f51222889b3168a;hb=fe87b98b4b733f58664b913820fe317081f9ebb0;hp=35a1f60e4e2e7d3c1bb972465ddaa1065183ca64;hpb=208112af094ee6be512e5f4d60ca6051f0908cff;p=svn%2FPrometheus-QoS%2F.git diff --git a/Makefile b/Makefile index 35a1f60..1719e10 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 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)