summaryrefslogtreecommitdiff
path: root/devel/nqc/patches/patch-aa
blob: 3ae42fcffcc6fb2319295d74620bccb7ec1e717a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
$NetBSD: patch-aa,v 1.3 2012/04/22 21:42:42 dholland Exp $

- configure for pkgsrc
- hardwire NetBSD instead of Linux serial port name (XXX: wrong)
- use -O* options that really exist (required by clang)
- don't use -W options that aren't defined for for C++

--- Makefile.orig	2001-04-16 00:56:31.000000000 +0000
+++ Makefile
@@ -34,8 +34,8 @@ CC=g++
 #
 # Pick your YACC processor
 #
-YACC = bison -y
-# YACC = yacc
+# YACC = bison -y
+YACC = yacc
 
 #
 # Define the FLEX processor
@@ -51,11 +51,11 @@ FLEX = flex
 # Use this to define the default device driver name
 # for serial port connections.
 #
-DEFAULT_SERIAL_NAME = "/dev/ttyS0"
+DEFAULT_SERIAL_NAME = "/dev/tty00"
 
 # installation information
-BINDIR=/usr/local/bin
-MANDIR=/usr/local/man/man1
+BINDIR=${PREFIX}/bin
+MANDIR=${PREFIX}/man/man1
 MANEXT=1
 
 
@@ -67,8 +67,8 @@ MV=mv -f
 RM=rm -f
 
 IFLAGS=-Iplatform -Ircxlib -Inqc -Icompiler
-WFLAGS=-Wall -Wstrict-prototypes -Wmissing-prototypes
-CFLAGS = -O6 -pipe $(IFLAGS) $(WFLAGS) -DDEFAULT_SERIAL_NAME='$(DEFAULT_SERIAL_NAME)'
+WFLAGS=-Wall #-Wstrict-prototypes -Wmissing-prototypes
+CFLAGS = -O3 -pipe $(IFLAGS) $(WFLAGS) -DDEFAULT_SERIAL_NAME='$(DEFAULT_SERIAL_NAME)'
 
 OBJ = $(NQCOBJ) $(COBJ) $(RCXOBJ) $(POBJ)