summaryrefslogtreecommitdiff
path: root/math/foma/files/patch-Makefile
blob: b2f9e6c6ae92d40c7cba639f24763571c949ccc4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
--- Makefile.orig	2012-11-17 07:21:50.000000000 -0500
+++ Makefile	2014-08-09 14:30:08.000000000 -0400
@@ -5,7 +5,7 @@
 includedir = $(prefix)/include
 
 VERSION = 0.9.17
-CC = gcc
+CC ?= gcc
 RANLIB = ranlib
 YACC = bison -d -t -v
 LEX = flex -8
@@ -13,9 +13,9 @@
 LEXIFACE = flex -8 --prefix=interface
 LEXCMATRIX = flex -8 --prefix=cmatrix
 RM = /bin/rm -f
-LDFLAGS = -lreadline -lz -ltermcap
+LDFLAGS += -lreadline -lz
 FLOOKUPLDFLAGS = libfoma.a -lz
-CFLAGS = -O3 -Wall -D_GNU_SOURCE -std=c99 -fvisibility=hidden -fPIC
+CFLAGS += -Wall -D_GNU_SOURCE -std=c99 -fvisibility=hidden -fPIC ${CPPFLAGS}
 FOMAOBJS = foma.o stack.o iface.o lex.interface.o
 LIBOBJS = int_stack.o define.o determinize.o apply.o rewrite.o lexcread.o topsort.o flags.o minimize.o reverse.o extract.o sigma.o io.o structures.o constructions.o coaccessible.o utf8.o spelling.o dynarray.o mem.o stringhash.o trie.o lex.lexc.o lex.yy.o lex.cmatrix.o regex.tab.o