1
#uncomment and locally adapt next line to fix the full helpfile path name
2
HELPFILENAME = -DHELPFILENAME=\"/usr/share/njplot/njplot.help\"
4
#comment out next line and uncomment next 2 to use the PDFLib Lite library
6
#PDF = ../PDFlibLite/libs/pdflib
7
#PDFLIB = -L$(PDF) -lpdf
9
# c compiler and linker
12
# Vibrant top directory
13
VIBRANT = /banques0/ncbiJun04
16
# X11 include directory
17
X11INCL = /usr/X11R6/include
19
# motif library directory
21
MOTIFINCL = /sw/include
23
OBJECTS = njplot-vib.o
24
OBJUNROOTED = unrooted-vib.o preptree.o
27
CFLAGS = -c -DWIN_MOTIF -Dunix -I$(VIBRANT)/include -I$(VIBRANT)/vibrant -I$(VIBRANT)/corelib \
28
-I$(VIBRANT) -I$(PDF) -I$(X11INCL) -I$(MOTIFINCL) $(HELPFILENAME) $(NO_PDF) \
29
-Wimplicit-function-declaration -g
31
all: njplot unrooted newicktops newicktotxt
35
$(CC) -g -o njplot $(OBJECTS) \
40
-L/usr/X11R6/lib -lXmu -lXt -lX11 -lm
42
unrooted : $(OBJUNROOTED)
43
$(CC) -g -o unrooted $(OBJUNROOTED) \
44
-L$(VIBRANT)/lib -lvibrant -lncbi \
46
-L/usr/X11R6/lib -lXmu -lXt -lX11 -lm
48
newicktops: njplot-vib.c
49
$(CC) -DNO_GUI -DNO_PDF -o $@ njplot-vib.c -lm
51
newicktotxt: njplot-vib.c
52
$(CC) -DTTY -o $@ njplot-vib.c -lm
62
rm -f njplot unrooted newicktops newicktotxt