$OpenBSD: patch-Makefile,v 1.1.1.1 2008/04/01 07:47:39 ajacoutot Exp $ --- Makefile.orig Sat Dec 18 06:47:40 2004 +++ Makefile Tue Apr 1 09:42:17 2008 @@ -11,19 +11,18 @@ XDW_MAX_OPTIMIZATION=2 #=========================== C compiler configuration ========================== -CC = gcc -CFLAGS = -I/usr/X11R6/include -O2 +CFLAGS += -I${X11BASE}/include #============================= Linker configuration ============================ -LINK = gcc -LFLAGS = -L/usr/X11R6/lib -LIBS = -lm -lX11 -lXext +LINK = ${CC} +LFLAGS += -L${X11BASE}/lib +LIBS += -lm -lX11 -lXext #============================ Installer configuration ========================== -BINDIR = /usr/X11R6/bin -MAN1DIR = /usr/X11R6/man/man1 +BINDIR = ${PREFIX}/bin +MAN1DIR = ${PREFIX}/man/man1 INSTALL = install RM = rm -f -v @@ -32,7 +31,7 @@ RM = rm -f -v all: xdesktopwaves xdesktopwaves.o: xdesktopwaves.c - $(CC) $(CFLAGS) -DXDW_MAX_OPTIMIZATION=$(XDW_MAX_OPTIMIZATION) -c xdesktopwaves.c -o xdesktopwaves.o + $(CC) $(CFLAGS) -c xdesktopwaves.c -o xdesktopwaves.o xdesktopwaves: xdesktopwaves.o $(LINK) $(LFLAGS) xdesktopwaves.o $(LIBS) -o xdesktopwaves