From fe87b98b4b733f58664b913820fe317081f9ebb0 Mon Sep 17 00:00:00 2001 From: xchaos Date: Sun, 7 Oct 2012 20:39:30 +0000 Subject: [PATCH] now we will have real Makefile git-svn-id: https://dev.arachne.cz/repos/prometheus/trunk@197 251d49ef-1d17-4917-a970-b30cf55b089b --- Makefile | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 05d120b..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 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) -- 2.30.2