9 mkdir -p $(DESTDIR)/sbin
10 mkdir -p $(DESTDIR)/etc
11 mkdir -p $(DESTDIR)/usr/share/doc/bootchart/
12 install -m0755 bootchartd $(DESTDIR)/sbin/
13 install -m0644 bootchartd.conf.example $(DESTDIR)/usr/share/doc/bootchart/
14 install -m0644 README COPYING $(DESTDIR)/usr/share/doc/bootchart/
16 OBJS := log.o svg.o bootchart.o
18 CFLAGS += -Wall -W -Os -g -fstack-protector -D_FORTIFY_SOURCE=2 -Wformat -fno-common \
19 -Wimplicit-function-declaration -Wimplicit-int -fstack-protector \
20 -DBOOTCHARTVERSION=\"v$(VERSION)\"
24 %.o: %.c Makefile bootchart.h
26 @$(CC) $(CFLAGS) -c -o $@ $<
28 bootchartd: $(OBJS) Makefile
30 @$(CC) -o $@ $(OBJS) $(LDADD) $(LDFLAGS)
33 rm -rf *.o *~ bootchartd
37 git archive --format=tar --prefix="bootchart-$(VERSION)/" v$(VERSION) | \
38 gzip > bootchart-$(VERSION).tar.gz