2011-03-25 18:45:13 +00:00
|
|
|
|
|
|
|
# Set this to 'y' if you want support for reading the link quality
|
|
|
|
# of nowiresneeded 1148 PCMCIA or Swallow cards
|
|
|
|
|
|
|
|
ENABLE_NWN_SUPPORT=n
|
|
|
|
|
|
|
|
|
|
|
|
##################################################################
|
|
|
|
# Nothing to configure under here
|
|
|
|
|
|
|
|
NAME=wmifinfo
|
2014-07-29 03:51:01 +00:00
|
|
|
VERSION=0.09
|
2011-03-25 18:45:13 +00:00
|
|
|
|
|
|
|
CC = gcc
|
|
|
|
LD = gcc
|
2014-12-09 03:01:47 +00:00
|
|
|
INSTALL = install
|
|
|
|
CFLAGS = -Wall -O2
|
|
|
|
COPTS = -D'VERSION="$(VERSION)"' -D'NAME="$(NAME)"'
|
|
|
|
LDOPTS = -lX11 -lXpm -lXext
|
|
|
|
PREFIX = /usr/local
|
|
|
|
BINDIR = $(PREFIX)/bin
|
2014-12-09 03:01:48 +00:00
|
|
|
MANDIR = $(PREFIX)/share/man
|
2011-03-25 18:45:13 +00:00
|
|
|
|
|
|
|
BIN = wmifinfo
|
2014-10-05 15:29:59 +00:00
|
|
|
FILES = wmifinfo.o xutils.o
|
2011-03-25 18:45:13 +00:00
|
|
|
|
|
|
|
ifeq ("$(ENABLE_NWN_SUPPORT)", "y")
|
|
|
|
FILES += nwn.o
|
|
|
|
COPTS += -DENABLE_NWN_SUPPORT
|
|
|
|
endif
|
|
|
|
|
|
|
|
all: $(BIN)
|
|
|
|
|
2014-10-05 15:29:59 +00:00
|
|
|
.c.o:
|
2014-12-09 03:01:47 +00:00
|
|
|
$(CC) $(COPTS) $(CPPFLAGS) $(CFLAGS) -c $<
|
2011-03-25 18:45:13 +00:00
|
|
|
|
|
|
|
$(BIN): $(FILES)
|
2014-12-09 03:01:47 +00:00
|
|
|
$(LD) $(LDFLAGS) -o $@ $(FILES) $(LDOPTS)
|
2011-03-25 18:45:13 +00:00
|
|
|
|
|
|
|
clean:
|
2014-07-29 03:51:00 +00:00
|
|
|
rm -f *.o $(BIN) core ./.#* *.orig *.rej
|
2011-03-25 18:45:13 +00:00
|
|
|
|
|
|
|
install:
|
2014-12-09 03:01:47 +00:00
|
|
|
$(INSTALL) -d $(DESTDIR)$(BINDIR)
|
|
|
|
$(INSTALL) $(BIN) $(DESTDIR)$(BINDIR)
|
2014-12-09 03:01:48 +00:00
|
|
|
$(INSTALL) -d $(DESTDIR)$(MANDIR)/man1
|
|
|
|
$(INSTALL) -m 644 wmifinfo.1 $(DESTDIR)$(MANDIR)/man1
|
2011-03-25 18:45:13 +00:00
|
|
|
|
|
|
|
dist: clean
|
2014-07-29 03:50:59 +00:00
|
|
|
rm -rf /tmp/wmifinfo-$(VERSION)
|
|
|
|
cd .. && cp -a wmifinfo /tmp/wmifinfo-$(VERSION)
|
|
|
|
cd /tmp && tar --exclude CVS -zcvf wmifinfo-$(VERSION).tgz wmifinfo-$(VERSION)/
|
2014-10-05 15:29:59 +00:00
|
|
|
|