patch-Makefile 1.0 KB

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