PACKAGE=prometheus
-VERSION=0.7.8
+VERSION=0.8.2
CFLAGS=-std=c99 -Wall
prefix=/usr
mandir=$(prefix)/share/man
sbindir=$(prefix)/sbin
sysconfdir=/etc
+OBJECTS=parsehosts.o networks.o parseiptables.o parselogs.o ipv4subnets.o ipv6subnets.o json.o htmlandlogs.o help.o utils.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
clean:
rm -f prometheus
- rm -f optinal-tools/prometheus-stats
+ rm -f $(OBJECTS)