81c7e61f5a
Submitted by: MAINTAINER
66 lines
1.5 KiB
Plaintext
66 lines
1.5 KiB
Plaintext
--- Makefile.in.orig Tue Aug 28 05:43:05 2001
|
|
+++ Makefile.in Wed Sep 19 19:39:43 2001
|
|
@@ -12,9 +12,9 @@
|
|
|
|
DEFS=-DHAVE_CONFIG_H
|
|
|
|
-LIBDIR=/usr/X11R6/lib
|
|
+LIBDIR=$(X11BASE)/lib
|
|
INCDIR=.
|
|
-XINCDIR=/usr/X11R6/include
|
|
+XINCDIR=$(X11BASE)/include
|
|
XLIB=-lXaw -lXmu
|
|
EXTENSIONLIB=-lXext
|
|
INCLUDES=-I$(INCDIR)
|
|
@@ -22,9 +22,9 @@
|
|
LIBS=-L$(LIBDIR) -lXaw $(XLIB) -lXt $(EXTENSIONLIB) -lX11 -lm
|
|
|
|
#CC=/compat/linux/usr/bin/gcc
|
|
-CC=gcc
|
|
-CFLAGS=-O3 $(INCLUDES) $(DEFS)
|
|
-CFLAGSX=-O3 $(XINCLUDES) $(DEFS)
|
|
+CC?=gcc
|
|
+CFLAGS+= $(INCLUDES) $(DEFS)
|
|
+CFLAGSX= $(XINCLUDES) $(CFLAGS)
|
|
LDFLAGS=-s
|
|
|
|
LINT=lint
|
|
@@ -33,14 +33,16 @@
|
|
RM=rm -f
|
|
INSTALL=install
|
|
|
|
-INST_DIR=/usr/local/bin
|
|
-INST_XDIR=/usr/X11R6/bin
|
|
-INST_XRDIR=/usr/X11R6/lib/X11/app-defaults
|
|
+INST_DIR=$(PREFIX)/bin
|
|
+INST_XDIR=$(PREFIX)/bin
|
|
+INST_XRDIR=$(X11BASE)/lib/X11/app-defaults
|
|
|
|
.c.o:
|
|
$(CC) -c $(CFLAGS) $*.c
|
|
|
|
-PROGRAM = mbmon xmbmon testpci testsmb testhwm testfan
|
|
+PROGRAM = mbmon testpci testsmb testhwm testfan
|
|
+DOCS= __DOCS__
|
|
+PROGRAM+= xmbmon
|
|
|
|
all: $(PROGRAM)
|
|
|
|
@@ -69,8 +71,14 @@
|
|
$(RM) Makefile config.cache config.log config.h config.status
|
|
|
|
install: $(PROGRAM)
|
|
- $(INSTALL) -o root -g wheel -m 4555 -c -p mbmon $(INST_DIR)
|
|
- $(INSTALL) -o root -g wheel -m 4555 -c -p xmbmon $(INST_XDIR)
|
|
+ @for i in $(PROGRAM); do \
|
|
+ $(INSTALL) -o root -g wheel -m 4555 -c -p $$i $(INST_DIR); \
|
|
+ done
|
|
|
|
lint:
|
|
$(LINT) $(INCLUDES) $(DEFS) $(FONTDEFINES) $(SRCS) -lm
|
|
+
|
|
+install-doc: $(DOCS)
|
|
+ @for f in $(DOCS); do \
|
|
+ $(INSTALL_DATA) $$f $(DOCSDIR)/; \
|
|
+ done
|