X-Git-Url: https://git.harvie.cz/?a=blobdiff_plain;f=Makefile;h=7fcedc2e2de32a464160e6aa0ccfbd8dd03b4c05;hb=59c3032e109320ce1b72bb2cac0d81b89fae867c;hp=ef902d65968108b43f065984fe26f87aa242b960;hpb=d4eabe362aad5c58ac1ddfedd4085e1c6a7b884b;p=svn%2FPrometheus-QoS%2F.git diff --git a/Makefile b/Makefile index ef902d6..7fcedc2 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 prometheus.o +HEADERS=cll1-0.6.2.h ipstruct.h main: prometheus - $(CC) -o prometheus 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)