1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-02 01:20:54 +00:00
freebsd-ports/emulators/spim/files/patch-spim_Makefile
Martin Wilke b377670c26 - Update to 8.0
PR:		142980
Submitted by:	Ports Fury
2010-01-21 21:14:37 +00:00

59 lines
1.4 KiB
Plaintext

--- spim/Makefile.orig 2010-01-09 14:22:57.000000000 +0900
+++ spim/Makefile 2010-01-17 01:44:59.000000000 +0900
@@ -66,13 +66,13 @@
# Full path for the directory that will hold the executable files:
-BIN_DIR = /usr/local/bin
+BIN_DIR = ${PREFIX}/bin
# Full path for the directory that will hold the exception handler:
-EXCEPTION_DIR = /usr/local/lib/spim
+EXCEPTION_DIR = ${PREFIX}/share/spim
# Full path for the directory that will hold the man files:
-MAN_DIR = /usr/local/man/en
+MAN_DIR = ${MANPREFIX}/man/man1
# If you have flex, use it instead of lex. If you use flex, define this
@@ -104,12 +104,12 @@
DEFINES = $(ENDIAN) $(MEM_SIZES) -DDEFAULT_EXCEPTION_HANDLER="\"$(EXCEPTION_DIR)/exceptions.s\"" -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.
@@ -122,10 +122,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
@@ -211,7 +211,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