patch-wmmon_Makefile 978 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. $OpenBSD: patch-wmmon_Makefile,v 1.4 2012/12/06 22:30:22 sthen Exp $
  2. --- wmmon/Makefile.orig Tue May 19 22:13:16 1998
  3. +++ wmmon/Makefile Thu Dec 6 22:30:02 2012
  4. @@ -1,19 +1,27 @@
  5. -LIBDIR = -L/usr/X11R6/lib
  6. -LIBS = -lXpm -lXext -lX11
  7. -OBJS = wmmon.o \
  8. - ../wmgeneral/wmgeneral.o \
  9. - ../wmgeneral/misc.o \
  10. - ../wmgeneral/list.o
  11. +LIBDIR = -L${X11BASE}/lib
  12. +LIBS = -lXpm -lXext -lX11 -lkvm
  13. +CFLAGS ?= -O2 -Wall
  14. +CFLAGS += -I${X11BASE}/include
  15. +OBJS = wmmon.o \
  16. + ../wmgeneral/wmgeneral.o \
  17. + ../wmgeneral/misc.o \
  18. + ../wmgeneral/list.o
  19. +PROG = wmmon
  20. +PREFIX ?= /usr/local
  21. -
  22. .c.o:
  23. - cc -c -O2 -Wall $< -o $*.o
  24. + ${CC} -c $(CFLAGS) $< -o $@
  25. -wmmon: $(OBJS)
  26. - cc -o wmmon $^ $(LIBDIR) $(LIBS)
  27. +$(PROG): $(OBJS)
  28. + ${CC} -o $@ $> $(LIBDIR) $(LIBS)
  29. +all:: $(PROG)
  30. +
  31. clean::
  32. - for i in $(OBJS) ; do \
  33. - rm $$i;\
  34. - done
  35. - rm wmmon
  36. + rm -f $(OBJS)
  37. + rm -f $(PROG)
  38. +
  39. +install::
  40. + mkdir -p $(PREFIX)/bin
  41. + install -c -s -o root -g bin -m 555 $(PROG) ${PREFIX}/bin
  42. +