patch-Makefile 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. $OpenBSD: patch-Makefile,v 1.2 2007/12/27 16:34:19 espie Exp $
  2. --- Makefile.orig Tue May 7 17:20:50 1996
  3. +++ Makefile Thu Dec 27 17:33:14 2007
  4. @@ -1,5 +1,5 @@
  5. # Makefile for any machine
  6. -# - based on my newer makefile and the GREATE
  7. +# - based on my newer makefile and the GREAT
  8. # modifications by Mike Battersby
  9. ###############################################################################
  10. #
  11. @@ -10,8 +10,8 @@
  12. # hpalib, hplow, hp3, dec, solaris, sparc, linux, freebsd, sgi,
  13. # soundblaster, aix, next, MM1, NAS, sbos2, SVR4
  14. # gmake needed to handle this file in FreeBSD
  15. -MACHINE = sparc
  16. -VERSION = 5.3
  17. +#MACHINE = sparc
  18. +VERSION = 5.3-OpenBSD
  19. #VPATH=..
  20. # The name of your C compiler. For most machines this will be
  21. @@ -20,7 +20,7 @@ CC = gcc
  22. OPTS=-c
  23. -PREFIX=/users/algo/espie/pub
  24. +PREFIX?=/users/algo/espie/pub
  25. # Destination directory for tracker binaries and manpage.
  26. #
  27. # If you don't wish to use the 'make install' and 'make install.man'
  28. @@ -175,6 +175,15 @@ EXE_freebsd =
  29. UI_freebsd = Unix/
  30. SHELL_freebsd = /bin/sh
  31. +CFLAGS_openbsd = -O3 -funroll-loops -finline-functions
  32. +LIBS_openbsd = -lm
  33. +AUDIODIR_openbsd = OpenBSD/
  34. +CONFIG_openbsd = OpenBSD/
  35. +O_openbsd = .o
  36. +EXE_openbsd =
  37. +UI_openbsd = Unix/
  38. +SHELL_openbsd = /bin/sh
  39. +
  40. CFLAGS_aix = -O
  41. LIBS_aix = -lm
  42. AUDIODIR_aix = Aix/
  43. @@ -250,12 +259,13 @@ OBJ_SPLITMOD = split$O time$O st_read$O dump_song$O op
  44. display$O prefs$O autoinit$O $(UI)ui$O empty$O color$O version$O \
  45. st_virt$O automaton$O
  46. -all: tracker${EXE} randomize${EXE} splitmod${EXE} Docs/tracker.text
  47. +all: tracker${EXE} randomize${EXE}
  48. config.h: $(CONFIG)config.h
  49. rm -f config.h
  50. cp $(CONFIG)config.h config.h
  51. +${OBJ_TRACKER} ${OBJ_SPLITMOD} ${OBJ_ANALYZER}: defs.h config.h
  52. # This Makefile entry probably won't work as is on your system
  53. Docs/tracker.doc: Docs/tracker.texinfo Docs/protracker.fmt
  54. @@ -272,9 +282,8 @@ version.c: Makefile
  55. install:
  56. $(INSTALL) $(INST_BIN_OPT) tracker $(BIN_DIR)
  57. $(INSTALL) $(INST_BIN_OPT) randomize $(BIN_DIR)
  58. - $(INSTALL) $(INST_BIN_OPT) splitmod $(BIN_DIR)
  59. [ -f ${COMPRESSION_FILE} ] || \
  60. - $(INSTALL) $(INST_MAN_OPT) compression_methods ${COMPRESSION_FILE}
  61. + $(INSTALL) $(INST_MAN_OPT) Lib/compression_methods ${COMPRESSION_FILE}
  62. # no manpage available, use the texinfo manual.
  63. install.man:
  64. @@ -293,7 +302,7 @@ devel:
  65. cp tracker $(BIN_DIR)/dtracker
  66. #- cp splitmod $(BIN_DIR)/splitmod
  67. -tracker${EXE}: config.h ${OBJ_TRACKER}
  68. +tracker${EXE}: ${OBJ_TRACKER}
  69. ${CC} -o tracker${EXE} ${CFLAGS} ${OBJ_TRACKER} ${LIBS}
  70. dtracker${EXE}: ${OBJ_TRACKER}