summaryrefslogtreecommitdiff
blob: 61f8b95ea160c1049ad418de722071d4861db0d4 (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
49
50
51
52
53
54
55
56
57
58
59
 makefile | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/makefile b/makefile
index ccb7dc2..9488c2a 100644
--- a/makefile
+++ b/makefile
@@ -7,10 +7,10 @@ NO_PDF = -DNO_PDF
 #PDFLIB = -L$(PDF) -lpdf
 
 # c compiler and linker
-CC = gcc
+CC ?= gcc
 
 # Vibrant top directory
-VIBRANT = /banques0/ncbiJun04
+VIBRANT = /usr/include/ncbi
 
 
 # X11 include directory
@@ -24,15 +24,15 @@ OBJECTS = njplot-vib.o
 OBJUNROOTED = unrooted-vib.o preptree.o
 
 
-CFLAGS  = -c -DWIN_MOTIF -Dunix -I$(VIBRANT)/include -I$(VIBRANT)/vibrant -I$(VIBRANT)/corelib \
+CFLAGS  += -c -DWIN_MOTIF -Dunix -I$(VIBRANT)/include -I$(VIBRANT)/vibrant -I$(VIBRANT)/corelib \
 	-I$(VIBRANT) -I$(PDF) -I$(X11INCL) -I$(MOTIFINCL) $(HELPFILENAME) $(NO_PDF) \
-	-Wimplicit-function-declaration -g
+	-Wimplicit-function-declaration
 	
 all: njplot  unrooted newicktops newicktotxt
 
 
 njplot : $(OBJECTS)
-	$(CC) -g -o njplot $(OBJECTS) \
+	$(CC) $(LDFLAGS) -o njplot $(OBJECTS) \
         -L$(VIBRANT)/lib \
         -lvibrant -lncbi \
         $(PDFLIB)   \
@@ -40,16 +40,16 @@ njplot : $(OBJECTS)
         -L/usr/X11R6/lib -lXmu -lXt -lX11 -lm
         
 unrooted : $(OBJUNROOTED)
-	$(CC) -g -o unrooted $(OBJUNROOTED) \
+	$(CC) $(LDFLAGS) -o unrooted $(OBJUNROOTED) \
         -L$(VIBRANT)/lib -lvibrant -lncbi \
         -L$(MOTIFLIB) -lXm \
         -L/usr/X11R6/lib -lXmu -lXt -lX11  -lm
 
 newicktops: njplot-vib.c
-	$(CC) -DNO_GUI  -DNO_PDF -o $@ njplot-vib.c -lm
+	$(CC) $(LDFLAGS) $(CFLAGS) -DNO_GUI  -DNO_PDF -o $@ njplot-vib.c -lm
 
 newicktotxt: njplot-vib.c
-	$(CC) -DTTY  -o $@ njplot-vib.c -lm
+	$(CC) -DTTY $(LDFLAGS) $(CFLAGS) -o $@ njplot-vib.c -lm
 
 
 .c.o :