patch-Makefile 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. $OpenBSD: patch-Makefile,v 1.1.1.1 2001/02/09 12:58:08 wilfried Exp $
  2. --- Makefile.orig Thu Jul 29 06:59:39 1999
  3. +++ Makefile Tue Feb 6 15:04:20 2001
  4. @@ -22,7 +22,7 @@
  5. # Specify the location of gnuchessx on your system.
  6. -GNUCHESS = /usr/local/bin/gnuchessx
  7. +GNUCHESS = ${TRUEPREFIX}/bin/gnuchessx
  8. # Where do you want the binary installed?
  9. DESTDIR = /usr/local/bin
  10. @@ -33,16 +33,16 @@ BIN_NAME = minichess
  11. # Uncomment this line if your using Solaris.
  12. #SOLARIS_LIBS = -lsocket
  13. -CFLAGS = -ansi -I/usr/X11R6/include
  14. -LIBDIR = -L/usr/X11R6/lib
  15. +CFLAGS += -I${X11BASE}/include
  16. +LIBDIR = -L${X11BASE}/lib
  17. LIBS = -lXpm -lXext -lX11 $(SOLARIS_LIBS)
  18. OBJS = chess.o xgen.o
  19. .c.o:
  20. - gcc $(CFLAGS) -DENGINE=\"$(GNUCHESS)\" -c $< -o $*.o
  21. + $(CC) $(CFLAGS) -DENGINE=\"$(GNUCHESS)\" -c $< -o $@
  22. $(BIN_NAME): $(OBJS)
  23. - gcc $(CFLAGS) -o $(BIN_NAME) $(OBJS) $(LIBDIR) $(LIBS)
  24. + $(CC) $(CFLAGS) -o $(BIN_NAME) $(OBJS) $(LIBDIR) $(LIBS)
  25. clean:
  26. rm -f $(OBJS) $(BIN_NAME)
  27. @@ -50,4 +50,3 @@ clean:
  28. install:
  29. cp -f $(BIN_NAME) $(DESTDIR)
  30. chmod 755 $(DESTDIR)/$(BIN_NAME)
  31. -