patch-Makefile 1012 B

12345678910111213141516171819202122232425262728293031323334
  1. $OpenBSD: patch-Makefile,v 1.3 2013/09/25 07:56:56 sthen Exp $
  2. --- Makefile.orig Sun Aug 12 09:41:22 2001
  3. +++ Makefile Thu Sep 19 15:20:08 2013
  4. @@ -1,12 +1,12 @@
  5. -INC = -I/usr/X11R6/include
  6. -LIBS = -lXext -lX11 -lm -L/usr/X11R6/lib \
  7. - -ltiff -lXpm -lpng -lz -ljpeg -lungif -lwraster
  8. +INC = -I$(X11BASE)/include -I$(LOCALBASE)/include
  9. +LIBS = -lXext -lX11 -lm -L$(X11BASE)/lib -L$(LOCALBASE)/lib \
  10. + -ltiff -lXpm -lpng -lz -ljpeg -lgif -lwraster
  11. OBJS = src/wmglobe.o src/rend.o src/wmgutil.o \
  12. src/sunpos.o src/myconvert.o src/mycontext.o
  13. .c.o :
  14. - gcc -c -O2 -Wall $(INC) $< -o $*.o
  15. + $(CC) -c $(CFLAGS) $(INC) $< -o $*.o
  16. all: wmglobe
  17. @@ -14,9 +14,8 @@ clean:
  18. rm -f src/*.o wmglobe
  19. wmglobe : $(OBJS)
  20. - gcc -O2 -Wall $(OBJS) -o wmglobe $(LIBS)
  21. - strip wmglobe
  22. + $(CC) $(OBJS) -o wmglobe $(LIBS)
  23. install :
  24. - install wmglobe /usr/local/bin
  25. - install wmglobe.1 /usr/local/man/man1
  26. + $(BSD_INSTALL_PROGRAM) wmglobe $(PREFIX)/bin
  27. + $(BSD_INSTALL_MAN) wmglobe.1 $(PREFIX)/man/man1