X-Git-Url: http://git.harvie.cz/?p=svn%2FPrometheus-QoS%2F.git;a=blobdiff_plain;f=Makefile;h=2f89465c0ba0224815d209cdcbe486cfbc07d18a;hp=2145cfb07afb23c8f8b7bd459961e22ab79995f9;hb=068f0e750bed52bfbe63a9fe39e332b1a0ef151a;hpb=5692c7757847ed4d412173d820392dbf2cfb5a70 diff --git a/Makefile b/Makefile index 2145cfb..2f89465 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 help.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)