X-Git-Url: http://git.harvie.cz/?p=svn%2FPrometheus-QoS%2F.git;a=blobdiff_plain;f=Makefile;h=439c7ac6972384cefb3a57ee38da9978bf5a5249;hp=2145cfb07afb23c8f8b7bd459961e22ab79995f9;hb=1ab008b9af1556f1bcba85b2d262fa83b617f01e;hpb=5692c7757847ed4d412173d820392dbf2cfb5a70 diff --git a/Makefile b/Makefile index 2145cfb..439c7ac 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 prometheus.o +HEADERS=cll1-0.6.2.h ipstruct.h main: prometheus - $(CC) -o prometheus parselog.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)