2009-01-25 22:18:25 +00:00
|
|
|
CFLAGS+=-Wall -Wshadow -Wpointer-arith -Wcast-qual -Wsign-compare
|
2008-10-07 13:33:54 +00:00
|
|
|
CFLAGS+=-g
|
|
|
|
CFLAGS+=-DPREFIX=\"\"
|
|
|
|
|
2009-01-25 19:50:02 +00:00
|
|
|
ifeq ($(shell uname),Linux)
|
|
|
|
CFLAGS+=-DLINUX
|
|
|
|
endif
|
|
|
|
|
2009-01-25 22:18:25 +00:00
|
|
|
wmiistatus: wmiistatus.o wmiistatus.h
|
2008-10-07 13:33:54 +00:00
|
|
|
|
|
|
|
clean:
|
2008-10-24 19:29:00 +00:00
|
|
|
rm -f *.o
|
2008-10-07 13:33:54 +00:00
|
|
|
|
|
|
|
distclean: clean
|
2008-10-24 19:29:00 +00:00
|
|
|
rm -f wmiistatus
|
2008-10-04 17:32:35 +00:00
|
|
|
|
|
|
|
install:
|
|
|
|
install -m 755 -d $(DESTDIR)/usr/bin
|
|
|
|
install -m 755 -d $(DESTDIR)/etc/init.d
|
2008-10-24 19:39:28 +00:00
|
|
|
install -m 755 -d $(DESTDIR)/usr/share/man/man1
|
2008-10-04 17:32:35 +00:00
|
|
|
install -m 755 wmiistatus $(DESTDIR)/usr/bin/wmiistatus
|
|
|
|
install -m 755 wmiistatus.init $(DESTDIR)/etc/init.d/wmiistatus
|
2008-10-07 11:41:10 +00:00
|
|
|
install -m 644 wmiistatus.conf $(DESTDIR)/etc/wmiistatus.conf
|
2008-10-24 19:39:28 +00:00
|
|
|
install -m 644 wmiistatus.1 $(DESTDIR)/usr/share/man/man1
|
2008-10-04 17:32:35 +00:00
|
|
|
|
2008-10-24 19:29:00 +00:00
|
|
|
release:
|
2009-01-25 22:18:25 +00:00
|
|
|
tar cjf wmiistatus.tar.bz2 *.c *.h *.1 *.conf *.init Makefile
|
2008-10-24 19:29:00 +00:00
|
|
|
|
2008-10-04 17:32:35 +00:00
|
|
|
all: wmiistatus
|