X-Git-Url: https://git.harvie.cz/?a=blobdiff_plain;f=Makefile;h=a926c5721468db134e120b7472712627f05ee91a;hb=56f6397ec3e60052dce31b6417ff64572b880897;hp=05d120be51d29048e01b4c6ada3a85c87510a702;hpb=1c9cae56507516acf3eda8fcfe60a74bfe923ee4;p=svn%2FPrometheus-QoS%2F.git diff --git a/Makefile b/Makefile index 05d120b..a926c57 100644 --- a/Makefile +++ b/Makefile @@ -5,9 +5,16 @@ prefix=/usr mandir=$(prefix)/share/man sbindir=$(prefix)/sbin sysconfdir=/etc +OBJECTS=parsehosts.o networks.o parseiptables.o parselogs.o ipv4subnets.o ipv6subnets.o json.o htmlandlogs.o help.o utils.o prometheus.o +HEADERS=cll1-0.6.2.h ipstruct.h main: prometheus - $(CC) -o prometheus parsehosts.c parselogs.c 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)