mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-05 01:55:52 +00:00
7398eb9f93
Support CC/CFLAGS properly PR: ports/70171 Submitted by: Ports Fury
30 lines
707 B
Plaintext
30 lines
707 B
Plaintext
--- Makefile.orig Mon Oct 18 06:25:17 1999
|
|
+++ Makefile Fri Aug 6 17:40:19 2004
|
|
@@ -1,12 +1,12 @@
|
|
-INCDIR = -I/usr/X11R6/include
|
|
-LIBDIR = -L/usr/X11R6/lib
|
|
+INCDIR = -I${X11BASE}/include
|
|
+LIBDIR = -L${X11BASE}/lib
|
|
LIBS = -lXpm -lXext -lX11
|
|
OBJS = br_cmd.o wmx10.o ../wmgeneral/wmgeneral.o
|
|
-CFLAGS = -D$(shell echo `uname -s`) #-DDEBUG
|
|
-CC = gcc
|
|
+CFLAGS += -D$(shell echo `uname -s`) #-DDEBUG
|
|
+CC ?= gcc
|
|
|
|
.c.o:
|
|
- $(CC) -c -O2 -Wall $(CFLAGS) $< -o $*.o $(INCDIR)
|
|
+ $(CC) -c $(CFLAGS) $< -o $*.o $(INCDIR)
|
|
|
|
all: wmx10
|
|
|
|
@@ -19,6 +19,5 @@
|
|
done
|
|
rm -f wmx10 *~
|
|
|
|
-install:
|
|
- strip wmx10
|
|
- mv wmx10 /usr/local/bin
|
|
+install: wmx10
|
|
+ ${BSD_INSTALL_PROGRAM} wmx10 ${X11BASE}/bin
|