Root/quickcalc/patches/Makefile.patch

1--- quickcalc-1.26/Makefile 1999-07-25 16:33:21.000000000 +0200
2+++ quickcalc-1.26m/Makefile 2010-07-23 13:13:02.888135597 +0200
3@@ -3,7 +3,8 @@
4 #CPPFLAGS = -DC_DEBUG -g
5 
6 CC = gcc
7-CFLAGS = -O2 -Wall
8+CFLAGS+= -O2 -Wall
9+LDLIBS+=$(LDFLAGS) -lm -lreadline -lncurses
10 SHELL = /bin/sh
11 
12 OBJS = qc.o error.o disp_ans.o text.o calc_str.o lex.yy.o
13@@ -11,7 +12,7 @@
14 all : qc
15 
16 qc : $(OBJS)
17- $(CC) $(OBJS) -lm -lreadline -lncurses -o qc
18+ $(CC) $(OBJS) $(LDLIBS) -o $(@)
19 
20 qc.o : qc.c version.h
21 
22

Archive Download this file



interactive