File: makefile

package info (click to toggle)
njplot 2.2-1
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 356 kB
  • ctags: 651
  • sloc: ansic: 6,152; makefile: 41; sh: 35
file content (62 lines) | stat: -rw-r--r-- 1,484 bytes parent folder | download | duplicates (2)
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
60
61
62
#uncomment and locally adapt next line to fix the full helpfile path name
HELPFILENAME = -DHELPFILENAME=\"/usr/share/njplot/njplot.help\"

#comment out next line and uncomment next 2 to use the PDFLib Lite library 
NO_PDF = -DNO_PDF
#PDF = ../PDFlibLite/libs/pdflib
#PDFLIB = -L$(PDF) -lpdf

# c compiler and linker
CC = gcc

# Vibrant top directory
VIBRANT = /banques0/ncbiJun04


# X11 include directory
X11INCL = /usr/X11R6/include

# motif library directory
MOTIFLIB = /sw/lib
MOTIFINCL = /sw/include

OBJECTS = njplot-vib.o
OBJUNROOTED = unrooted-vib.o preptree.o


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
	
all: njplot  unrooted newicktops newicktotxt


njplot : $(OBJECTS)
	$(CC) -g -o njplot $(OBJECTS) \
        -L$(VIBRANT)/lib \
        -lvibrant -lncbi \
        $(PDFLIB)   \
        -L$(MOTIFLIB) -lXm  \
        -L/usr/X11R6/lib -lXmu -lXt -lX11 -lm
        
unrooted : $(OBJUNROOTED)
	$(CC) -g -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

newicktotxt: njplot-vib.c
	$(CC) -DTTY  -o $@ njplot-vib.c -lm


.c.o : 
	$(CC) $(CFLAGS)  $?

clean:
	rm -f *.o

distclean: clean
	rm -f njplot unrooted newicktops newicktotxt