summaryrefslogtreecommitdiff
path: root/misc/wmwork/files/patch-Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'misc/wmwork/files/patch-Makefile')
-rw-r--r--misc/wmwork/files/patch-Makefile61
1 files changed, 61 insertions, 0 deletions
diff --git a/misc/wmwork/files/patch-Makefile b/misc/wmwork/files/patch-Makefile
new file mode 100644
index 000000000000..38e5e24f6d3d
--- /dev/null
+++ b/misc/wmwork/files/patch-Makefile
@@ -0,0 +1,61 @@
+$FreeBSD$
+
+--- Makefile.orig Sun Mar 3 21:21:58 2002
++++ Makefile Thu May 16 09:46:38 2002
+@@ -1,45 +1,18 @@
+-# $Id: Makefile,v 1.7 2002/03/03 15:21:58 godisch Exp $
++CC ?= gcc
++CFLAGS += -c -Wall -pedantic
++INCDIR = -I${X11BASE}/include -I/usr/local/include
++LIBDIR = -L${X11BASE}/lib -L/usr/local/lib
++LIBS = -lXpm -lXext -lX11 -lgnugetopt
++OBJS = wmwork.o wmgeneral.o
+
+-prefix = /usr/local
+-exec_prefix = ${prefix}
+-bindir = ${exec_prefix}/bin
+-mandir = ${prefix}/share/man
++.c.o:
++ ${CC} ${CFLAGS} ${INCDIR} $< -o $*.o -DSIGPOLL=SIGIO
+
+-DESTDIR =
+-
+-CFLAGS = -O2 -Wall -pedantic
+-LIBS = -L/usr/X11R6/lib -lX11 -lXpm -lXext
++wmwork: $(OBJS)
++ ${CC} -o wmwork $^ ${LIBDIR} ${LIBS}
+
+ all: wmwork
+
+-wmwork: wmwork.o wmgeneral.o
+- $(CC) $(LIBS) -o $@ $^
+-
+-wmwork.o: wmwork.c wmwork.h wmwork.xpm
+-wmgeneral.o: wmgeneral.c wmgeneral.h
+-
+-install: install-bin install-doc
+-
+-install-bin: wmwork
+- install -D -s -m 755 $< $(DESTDIR)$(bindir)/wmwork
+-
+-install-doc: wmwork.1
+- install -D -m 644 $< $(DESTDIR)$(mandir)/man1/wmwork.1
+-
+-uninstall: uninstall-bin uninstall-doc
+-
+-uninstall-bin:
+- rm -f $(DESTDIR)$(bindir)/wmwork
+-
+-uninstall-doc:
+- rm -f $(DESTDIR)$(mandir)/man1/wmwork.1
+-
+ clean:
+ rm -f *.o
+-
+-distclean: clean
+- rm -f wmwork
+-
+-.PHONY: all clean dist-clean install install-bin install-doc \
+- uninstall uninstall-bin uninstall-doc
+-
++ rm -f wmwork core