wmtop: Add version 0.84 to repository.
[dockapps.git] / wmifinfo / Makefile
bloba44ae8eaf96242f03b9b367b77fd081c45083b2c
2 # Set this to 'y' if you want support for reading the link quality
3 # of nowiresneeded 1148 PCMCIA or Swallow cards
5 ENABLE_NWN_SUPPORT=n
8 ##################################################################
9 # Nothing to configure under here
11 NAME=wmifinfo
12 VERSION=0.10
14 CC = gcc
15 LD = gcc
16 INSTALL = install
17 CFLAGS = -Wall -O2
18 COPTS = -D'VERSION="$(VERSION)"' -D'NAME="$(NAME)"'
19 LDOPTS = -lX11 -lXpm -lXext
20 PREFIX = /usr/local
21 BINDIR = $(PREFIX)/bin
22 MANDIR = $(PREFIX)/share/man
24 BIN = wmifinfo
25 FILES = wmifinfo.o xutils.o
27 ifeq ("$(ENABLE_NWN_SUPPORT)", "y")
28 FILES += nwn.o
29 COPTS += -DENABLE_NWN_SUPPORT
30 endif
32 all: $(BIN)
34 .c.o:
35 $(CC) $(COPTS) $(CPPFLAGS) $(CFLAGS) -c $<
37 $(BIN): $(FILES)
38 $(LD) $(LDFLAGS) -o $@ $(FILES) $(LDOPTS)
40 clean:
41 rm -f *.o $(BIN) core ./.#* *.orig *.rej
43 install:
44 $(INSTALL) -d $(DESTDIR)$(BINDIR)
45 $(INSTALL) $(BIN) $(DESTDIR)$(BINDIR)
46 $(INSTALL) -d $(DESTDIR)$(MANDIR)/man1
47 $(INSTALL) -m 644 wmifinfo.1 $(DESTDIR)$(MANDIR)/man1
49 dist: clean
50 rm -rf /tmp/wmifinfo-$(VERSION)
51 cd .. && cp -a wmifinfo /tmp/wmifinfo-$(VERSION)
52 cd /tmp && tar --exclude CVS -zcvf wmifinfo-$(VERSION).tgz wmifinfo-$(VERSION)/