$OpenBSD: patch-Makefile,v 1.3 2007/12/18 10:39:47 ajacoutot Exp $ --- wmSun/Makefile.orig Wed Jan 6 03:28:39 1999 +++ wmSun/Makefile Tue Dec 18 10:23:20 2007 @@ -1,8 +1,5 @@ -CC = gcc -CFLAGS = -O2 -Wall -INCDIR = -I/usr/X11R6/include/X11 -DESTDIR= /usr/X11R6 -LIBDIR = -L/usr/X11R6/lib +CFLAGS += -I${X11BASE}/include +LIBDIR = -L${X11BASE}/lib @@ -22,14 +19,14 @@ OBJS = wmSun.o SunRise.o ../wmgeneral/wmgeneral.o .c.o: - $(CC) $(COPTS) -D$(shell echo `uname -s`) -c $< -o $*.o $(INCDIR) + $(CC) $(CFLAGS) -c $< -o $*.o all: wmSun.o wmSun wmSun.o: wmSun_master.xpm wmSun_mask.xbm wmSun: $(OBJS) - $(CC) $(COPTS) $(SYSTEM) -lm -o wmSun $^ $(INCDIR) $(LIBDIR) $(LIBS) + $(CC) $(COPTS) $(SYSTEM) -o wmSun $(OBJS) $(INCDIR) $(LIBDIR) $(LIBS) -lm clean: for i in $(OBJS) ; do \ @@ -38,6 +35,5 @@ clean: rm -f wmSun install:: wmSun - install -s -m 0755 wmSun $(DESTDIR)/bin - install -m 0644 wmSun.1 $(DESTDIR)/man/man1 - + $(BSD_INSTALL_PROGRAM) wmSun $(PREFIX)/bin + $(BSD_INSTALL_MAN) wmSun.1 $(PREFIX)/man/man1