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 = /usr/include/ncbi
15
OBJECTS = njplot-vib.o
16
OBJUNROOTED = unrooted-vib.o preptree.o
19
CFLAGS = -c -DWIN_MOTIF -Dunix -I$(VIBRANT) $(HELPFILENAME) $(NO_PDF)
21
all: njplot unrooted newicktops newicktotxt
25
$(CC) -o njplot $(OBJECTS) \
26
-lvibrant -lncbi -lXm -lXt
28
unrooted : $(OBJUNROOTED)
29
$(CC) -o unrooted $(OBJUNROOTED) \
30
-lvibrant -lncbi -lXm -lXt
32
newicktops: njplot-vib.c
33
$(CC) -DNO_GUI -DNO_PDF -o $@ njplot-vib.c -lm
35
newicktotxt: njplot-vib.c
36
$(CC) -DTTY -o $@ njplot-vib.c -lm
46
rm -f njplot unrooted newicktops newicktotxt