some more cleanup
[svn/Prometheus-QoS/.git] / Makefile
index 0c98b1737dd35c4afea1b47063c4a41107aac1a9..1719e109ae75b7029548e84f0f51222889b3168a 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,13 +1,20 @@
 PACKAGE=prometheus
-VERSION=0.8.1
+VERSION=0.8.2
 CFLAGS=-std=c99 -Wall
 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 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)
This page took 0.12794 seconds and 4 git commands to generate.