diff options
author | Joseph Koshy <jkoshy@FreeBSD.org> | 2006-07-17 10:12:07 +0000 |
---|---|---|
committer | Joseph Koshy <jkoshy@FreeBSD.org> | 2006-07-17 10:12:07 +0000 |
commit | 8e16deea6ea9859527e5be6f0eb679be07a723ee (patch) | |
tree | 32a5b72bcd60bd331efd7274fc9babe9e7443a36 /emulators/spim/files/patch-spim_Makefile | |
parent | This port now builds on 7-CURRENT (diff) |
Upgrade to v7.2.1.
Upstream changes from the previous ported version include:
- bug fixes and documentation cleanups
The port now offers a 'GUI' knob that controls whether the X GUI
interface is built.
Take maintainership.
Notes
Notes:
svn path=/head/; revision=168065
Diffstat (limited to 'emulators/spim/files/patch-spim_Makefile')
-rw-r--r-- | emulators/spim/files/patch-spim_Makefile | 73 |
1 files changed, 73 insertions, 0 deletions
diff --git a/emulators/spim/files/patch-spim_Makefile b/emulators/spim/files/patch-spim_Makefile new file mode 100644 index 000000000000..e9aa25f973bd --- /dev/null +++ b/emulators/spim/files/patch-spim_Makefile @@ -0,0 +1,73 @@ +--- spim/Makefile.orig Mon Aug 29 02:28:14 2005 ++++ spim/Makefile Mon Jul 17 14:46:59 2006 +@@ -46,16 +46,16 @@ + VPATH = src:$(CPU_DIR) + + # Full path for directory that will hold the exception handler file: +-EXCEPTION_DIR = ../CPU ++EXCEPTION_DIR = ${PREFIX}/share/spim + + # Path of directory that contains SPIM tests: + TEST_DIR = ../Tests + + # Full path for the directory that will hold the executable files: +-BIN_DIR = /usr/unsup/bin ++BIN_DIR = ${PREFIX}/bin + + # Full path for the directory that will hold the man files: +-MAN_DIR = /usr/unsup/man ++MAN_DIR = ${PREFIX}/man/man1 + + + # Full path for the exception handler file: +@@ -90,12 +90,12 @@ + + DEFINES = $(ENDIAN) $(MEM_SIZES) -DDEFAULT_EXCEPTION_HANDLER=$(EXCEPTION_PATH) -DSPIM_VERSION="\"`cat ../VERSION`\"" + +-CC = gcc +-CFLAGS = -I. -I$(CPU_DIR) $(DEFINES) -g -Wall +-YFLAGS = -d --file-prefix=y ++CC? = gcc ++CFLAGS += -I. -I$(CPU_DIR) $(DEFINES) -Wall ++YFLAGS = -d + YCFLAGS = + LDFLAGS = -lm +-CSH = bash ++CSH = csh + + # lex.yy.c is usually compiled with -O to speed it up. + +@@ -108,10 +108,10 @@ + + + spim: force +- make -f Makefile spim2 ++ $(MAKE) -f Makefile spim2 + + spim2: $(OBJS) spim.o +- $(CC) -g $(OBJS) spim.o $(LDFLAGS) -o spim -lm ++ $(CC) $(OBJS) spim.o $(LDFLAGS) -o spim -lm + + + force: configuration +@@ -176,8 +176,9 @@ + + install: spim + install -c -s spim $(BIN_DIR) +- install -c -m 0444 exceptions.s $(EXCEPTION_DIR) +- install -c -m 0444 spim.man $(MAN_DIR) ++ mkdir -p $(EXCEPTION_DIR) ++ install -c -m 0444 $(CPU_DIR)/exceptions.s $(EXCEPTION_DIR) ++ install -c -m 0444 ../Documentation/spim.man $(MAN_DIR)/spim.1 + + very-clean: clean + rm -f configuration +@@ -195,7 +196,7 @@ + y.tab.h: y.tab.c + + y.tab.c: $(CPU_DIR)/parser.y +- bison $(YFLAGS) $(CPU_DIR)/parser.y ++ yacc $(YFLAGS) $(CPU_DIR)/parser.y + + y.tab.o: y.tab.c + $(CC) $(CFLAGS) $(YCFLAGS) -c y.tab.c |