summaryrefslogtreecommitdiffstats
path: root/math/gretl/files/patch-cli::Makefile.in
blob: afef1f23fac4e509beebf8d8de0cc7d89ce77d42 (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
47
48
--- cli/Makefile.in.orig	Tue Nov 12 04:28:19 2002
+++ cli/Makefile.in	Mon Nov 18 20:00:01 2002
@@ -15,6 +15,10 @@
 RL_OBJ = @RL_OBJ@
 USE_NLS = @USE_NLS@
 
+CPPFLAGS = @CPPFLAGS@
+LDFLAGS = @LDFLAGS@
+INTL_LIBS = @LTLIBINTL@
+
 ifeq ($(CC),)
   CC = gcc
 endif
@@ -25,15 +29,14 @@
   LN = ln -sf
 endif
 ifeq ($(USE_NLS),yes)
-  datadir = @datadir@
-  localedir = $(datadir)/locale
+  localedir = $(prefix)/share/locale
   DEFS = -DLOCALEDIR=\"$(localedir)\" -DHAVE_CONFIG_H
 endif
 
 GRETLLIB = ../lib/libgretl-1.0.la
 
 # General compile options and libs:
-LIBS = $(CLI_LIBS)
+LIBS = $(CLI_LIBS) $(INTL_LIBS)
 
 # Directories
 tooldir = $(topsrc)/tools
@@ -41,14 +44,14 @@
 
 #### End of system configuration section. ####
 
-override CFLAGS += -I. -I.. -I$(libsrc) $(DEFS)
+override CFLAGS += -I. -I.. -I$(libsrc) $(DEFS) $(CPPFLAGS)
 
 CLI = gretlcli
 LIBTOOL = $(topsrc)/libtool
 
 $(CLI): gretlcli.o $(RL_OBJ)
 	../libtool --mode=link $(CC) -o $@ $< \
-	$(RL_OBJ) $(GRETLLIB) $(CLI_LIBS) 
+	$(RL_OBJ) $(GRETLLIB) $(CLI_LIBS) $(LDFLAGS)
 
 .PHONY :
 
OpenPOWER on IntegriCloud