summaryrefslogtreecommitdiff
path: root/graphics/GMT/patches/patch-au
blob: bc6bcd3f75d593883d8b0a6e54ad0fda5b371141 (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
$NetBSD: patch-au,v 1.2 2001/04/19 20:51:33 jtb Exp $

--- src/x_system/makefile.orig	Wed Apr 11 19:58:09 2001
+++ src/x_system/makefile
@@ -20,8 +20,8 @@
 include ../makegmt.macros
 #
 
-CFLAGS	= $(CC_OPT) $(WIN32) -I$(includedir) -I../mgg -I$(NETCDF)/include
-ALLLIB  = -L$(libdir) -lgmt -L../mgg -lgmt_mgg -lpsl -L$(NETCDF)/lib -lnetcdf $(LIBS)
+CFLAGS	= $(CC_OPT) $(WIN32) -I$(includedir) -I.. -I../mgg -I$(NETCDF)/include
+ALLLIB  = ../libgmt.la ../mgg/libgmt_mgg.la ../libpsl.la -Wl,-R$(NETCDF)/lib -L$(NETCDF)/lib -lnetcdf $(LIBS)
 
 ALL_C	= x_edit.c x_init.c x_list.c x_over.c x_report.c x_remove.c x_setup.c x_solve_dc_drift.c x_update.c
 
@@ -35,7 +35,7 @@
 
 install:	all
 		for i in $(ALL); do \
-			$(INSTALL) $$i$(EXE) $(bindir); \
+			$(LIBTOOL) $(INSTALL_PROGRAM) $$i$(EXE) $(bindir); \
 		done
 
 uninstall:
@@ -56,9 +56,10 @@
 #-------------------------------------------------------------------------------
 
 $(ALL):		$(ALL_O)
-		$(CC) $(CFLAGS) $(LDFLAGS) $@.o $(ALLLIB) -o $@
+		@$(LIBTOOL) $(CC) $(CFLAGS) $(LDFLAGS) $@.lo $(ALLLIB) -o $@
 
 .c.o:
-		$(CC) -c $(CFLAGS) $<
+		@$(LIBTOOL) $(CC) $(CPPFLAGS) -c $(CFLAGS) $<
 
 $(ALL_O):	x_system.h
+