summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorMichael Stapelberg <michael+x200@stapelberg.de>2008-10-07 13:41:10 +0200
committerMichael Stapelberg <michael+x200@stapelberg.de>2008-10-07 13:41:10 +0200
commita49ff50578c3527634ff7cad11c8a2878403fde8 (patch)
tree2c35210000d13fa3b8cd0c593e97da365cf06422 /Makefile
parent7c79d735d87285df04dd46832da2c397421e2129 (diff)
Make everything configurable
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 09f537f..dc58c46 100644
--- a/Makefile
+++ b/Makefile
@@ -1,10 +1,13 @@
-wmiistatus: wmiistatus.c wmiistatus.h config.h Makefile
- gcc -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wshadow -Wpointer-arith -Wcast-qual -Wsign-compare -g -O2 -o wmiistatus wmiistatus.c
+wmiistatus: wmiistatus.c wmiistatus.h config.h config.c Makefile
+ gcc -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wshadow -Wpointer-arith -Wcast-qual -Wsign-compare -g -c -o wmiistatus.o wmiistatus.c
+ gcc -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wshadow -Wpointer-arith -Wcast-qual -Wsign-compare -g -c -o config.o config.c
+ gcc -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wshadow -Wpointer-arith -Wcast-qual -Wsign-compare -g -o wmiistatus *.o
install:
install -m 755 -d $(DESTDIR)/usr/bin
install -m 755 -d $(DESTDIR)/etc/init.d
install -m 755 wmiistatus $(DESTDIR)/usr/bin/wmiistatus
install -m 755 wmiistatus.init $(DESTDIR)/etc/init.d/wmiistatus
+ install -m 644 wmiistatus.conf $(DESTDIR)/etc/wmiistatus.conf
all: wmiistatus