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