aboutsummaryrefslogtreecommitdiffstats
path: root/lang/nqc/files/patch-aa
diff options
context:
space:
mode:
Diffstat (limited to 'lang/nqc/files/patch-aa')
-rw-r--r--lang/nqc/files/patch-aa102
1 files changed, 0 insertions, 102 deletions
diff --git a/lang/nqc/files/patch-aa b/lang/nqc/files/patch-aa
deleted file mode 100644
index fd5553e04c4b..000000000000
--- a/lang/nqc/files/patch-aa
+++ /dev/null
@@ -1,102 +0,0 @@
---- Makefile.orig Sun Nov 9 06:14:20 2003
-+++ Makefile Tue Nov 25 19:51:54 2003
-@@ -28,20 +28,20 @@
- #
- # Pick your C++ compiler.
- #
--CC=g++
-+CXX?=${CXX}
- # CC=gcc
-
- #
- # Pick your YACC processor
- #
--YACC = bison -y
--# YACC = yacc
-+# YACC = bison -y
-+YACC ?= yacc
-
- #
- # Define the FLEX processor
- # note - lex will not work
- #
--FLEX = flex
-+FLEX ?= flex
-
- # Link in any necessary C++ libraries
- #
-@@ -50,19 +50,20 @@
-
-
- # installation information
--BINDIR=/usr/local/bin
--MANDIR=/usr/local/man/man1
-+PREFIX?=/usr/local
-+BINDIR=$(PREFIX)/bin
-+MANDIR=$(PREFIX)/man/man1
- MANEXT=1
-
-
- # other commands
--CP=cp -f
--MKDIR=mkdir
--MV=mv -f
--RM=rm -f
-+CP?=cp -f
-+MKDIR?=mkdir
-+MV?=mv -f
-+RM?=rm -f
-
- # CFLAGS
--CFLAGS = -pipe -Iplatform -Ircxlib -Inqc -Icompiler -Wall -Wstrict-prototypes -Wmissing-prototypes
-+CFLAGS += -Iplatform -Ircxlib -Inqc -Icompiler
-
- USBOBJ = rcxlib/RCX_USBTowerPipe_none.o
-
-@@ -87,18 +88,23 @@
- # Solaris
- CFLAGS += -DSOLARIS
- else
-+ifneq (,$(strip $(findstring $(OSTYPE), FreeBSD)))
-+ # FreeBSD
-+ USBOBJ = rcxlib/RCX_USBTowerPipe_fbsd.o
-+else
- # default Unix build without USB support
- CFLAGS += -O6
- endif
- endif
- endif
-+endif
-
-
- # this must happen after the platform tweaks just in case the platform
- # wants to redefine the default serial name
- #
- ifndef DEFAULT_SERIAL_NAME
-- DEFAULT_SERIAL_NAME = "/dev/ttyS0"
-+ DEFAULT_SERIAL_NAME = "/dev/cuaa0"
- endif
- CFLAGS += -DDEFAULT_SERIAL_NAME='$(DEFAULT_SERIAL_NAME)'
-
-@@ -150,10 +156,10 @@
- $(MKDIR) bin
-
- bin/nqc : compiler/parse.cpp $(OBJ)
-- $(CC) -o $@ $(OBJ) $(LIBS)
-+ $(CXX) -o $@ $(OBJ) $(LIBS)
-
- bin/mkdata : mkdata/mkdata.cpp nqc/SRecord.cpp
-- $(CC) -o bin/mkdata -Inqc/ -Iplatform/ mkdata/mkdata.cpp nqc/SRecord.cpp
-+ $(CXX) -o bin/mkdata -Inqc/ -Iplatform/ mkdata/mkdata.cpp nqc/SRecord.cpp
-
- #
- # clean up stuff
-@@ -213,7 +219,7 @@
- # general rule for compiling
- #
- .cpp.o:
-- $(CC) -c $(CFLAGS) $< -o $*.o
-+ $(CXX) -c $(CFLAGS) $< -o $*.o
-
-
- #