bd057651bd
wmifinfo is a simple applet showing basic network info for all available interfaces. It shows IP address, netmask, gateway and MAC address.
35 lines
823 B
Plaintext
35 lines
823 B
Plaintext
$OpenBSD: patch-Makefile,v 1.1.1.1 2002/06/07 15:41:12 wilfried Exp $
|
|
--- Makefile.orig Sun Jun 2 23:28:10 2002
|
|
+++ Makefile Thu Jun 6 19:52:36 2002
|
|
@@ -11,27 +11,20 @@ ENABLE_NWN_SUPPORT=n
|
|
VERSION=0.05
|
|
NAME=wmifinfo
|
|
|
|
-CC = gcc
|
|
-LD = gcc
|
|
-COPTS = -Wall -O2 -D'VERSION="$(VERSION)"' -D'NAME="$(NAME)"'
|
|
-LDOPTS = -lX11 -L/usr/X11R6/lib -lXpm -lXext
|
|
+COPTS = ${CFLAGS} -I${X11BASE}/include -D'VERSION="$(VERSION)"' -D'NAME="$(NAME)"'
|
|
+LDOPTS = -lX11 -L${X11BASE}/lib -lXpm -lXext
|
|
BINDIR = /usr/local/bin
|
|
|
|
BIN = wmifinfo
|
|
FILES = wmifinfo.o xutils.o
|
|
|
|
-ifeq ("$(ENABLE_NWN_SUPPORT)", "y")
|
|
-FILES += nwn.o
|
|
-COPTS += -DENABLE_NWN_SUPPORT
|
|
-endif
|
|
-
|
|
all: $(BIN)
|
|
|
|
.c.o:
|
|
$(CC) $(COPTS) -c $<
|
|
|
|
$(BIN): $(FILES)
|
|
- $(LD) -o $@ $(FILES) $(LDOPTS)
|
|
+ $(CC) -o $@ $(FILES) $(LDOPTS)
|
|
|
|
clean:
|
|
rm -f $(FILES) $(BIN) core
|