File: Makefile

package info (click to toggle)
njplot 0.20060606-2
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 300 kB
  • ctags: 630
  • sloc: ansic: 5,973; makefile: 65; perl: 37
file content (50 lines) | stat: -rw-r--r-- 1,169 bytes parent folder | download
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
#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 = /usr/include/ncbi


# 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) -I$(PDF) -I$(X11INCL) -I$(MOTIFINCL) $(HELPFILENAME) $(NO_PDF) \
	-Wimplicit-function-declaration -g
	
all: njplot  unrooted 


njplot : $(OBJECTS)
	$(CC) -g -o njplot $(OBJECTS) \
        -L$(VIBRANT)/lib \
        -lvibrant -lncbi \
        $(PDFLIB)   \
        -L$(MOTIFLIB) -lXm  \
        -L/usr/X11R6/lib -lXmu -lXt -lX11 
        
unrooted : $(OBJUNROOTED)
	$(CC) -g -o unrooted $(OBJUNROOTED) \
        -L$(VIBRANT)/lib -lvibrant -lncbi \
        -L$(MOTIFLIB) -lXm \
        -L/usr/X11R6/lib -lXmu -lXt -lX11  


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