wmmon: wmmon manpage
[dockapps.git] / wmifinfo-0.06 / Makefile
blob009e7f51a7c2e05f8e014a8f6b93e8fca4273559
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.06
14 CC = gcc
15 LD = gcc
16 COPTS = -Wall -O2 -D'VERSION="$(VERSION)"' -D'NAME="$(NAME)"'
17 LDOPTS = -lX11 -L/usr/X11R6/lib -lXpm -lXext
18 BINDIR = /usr/local/bin
20 BIN = wmifinfo
21 FILES = wmifinfo.o xutils.o
23 ifeq ("$(ENABLE_NWN_SUPPORT)", "y")
24 FILES += nwn.o
25 COPTS += -DENABLE_NWN_SUPPORT
26 endif
28 all: $(BIN)
30 .c.o:
31 $(CC) $(COPTS) -c $<
33 $(BIN): $(FILES)
34 $(LD) -o $@ $(FILES) $(LDOPTS)
36 clean:
37 rm -f *.o $(BIN) core
39 install:
40 cp $(BIN) $(BINDIR)
42 dist: clean
43 cd .. && tar -zcvf dist/wmifinfo-$(VERSION).tgz wmifinfo-$(VERSION)/