2008-10-07 13:33:54 +00:00
|
|
|
CFLAGS+=-Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wshadow -Wpointer-arith -Wcast-qual -Wsign-compare
|
|
|
|
CFLAGS+=-g
|
|
|
|
CFLAGS+=-DPREFIX=\"\"
|
|
|
|
|
2009-01-25 19:50:02 +00:00
|
|
|
ifeq ($(shell uname),Linux)
|
|
|
|
CFLAGS+=-DLINUX
|
|
|
|
endif
|
|
|
|
|
2008-10-07 13:33:54 +00:00
|
|
|
wmiistatus: wmiistatus.o wmiistatus.h config.h config.o
|
|
|
|
|
|
|
|
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:
|
|
|
|
tar cf wmiistatus.tar *.c *.h *.1 *.conf *.init Makefile
|
|
|
|
bzip2 -9 wmiistatus.tar
|
|
|
|
|
2008-10-04 17:32:35 +00:00
|
|
|
all: wmiistatus
|