~ubuntu-branches/debian/sid/njplot/sid

« back to all changes in this revision

Viewing changes to .pc/no_unneded_libs.patch/makefile

  • Committer: Package Import Robot
  • Author(s): Charles Plessy
  • Date: 2012-01-04 19:02:39 UTC
  • mfrom: (1.3.3)
  • Revision ID: package-import@ubuntu.com-20120104190239-nxed9g63qh2ky4ak
Tags: 2.4-1
* New upstream release integrating Debian patches.
* Removed debian/patches.
* Updated debian/copyright to latest format and removed superfluous fields.
* Simplified Homepage URL (debian/control).

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#uncomment and locally adapt next line to fix the full helpfile path name
2
 
HELPFILENAME = -DHELPFILENAME=\"/usr/share/njplot/njplot.help\"
3
 
 
4
 
#comment out next line and uncomment next 2 to use the PDFLib Lite library 
5
 
NO_PDF = -DNO_PDF
6
 
#PDF = ../PDFlibLite/libs/pdflib
7
 
#PDFLIB = -L$(PDF) -lpdf
8
 
 
9
 
# c compiler and linker
10
 
CC = gcc
11
 
 
12
 
# Vibrant top directory
13
 
VIBRANT = /banques0/ncbiJun04
14
 
 
15
 
 
16
 
# X11 include directory
17
 
X11INCL = /usr/X11R6/include
18
 
 
19
 
# motif library directory
20
 
MOTIFLIB = /sw/lib
21
 
MOTIFINCL = /sw/include
22
 
 
23
 
OBJECTS = njplot-vib.o
24
 
OBJUNROOTED = unrooted-vib.o preptree.o
25
 
 
26
 
 
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
30
 
        
31
 
all: njplot  unrooted newicktops newicktotxt
32
 
 
33
 
 
34
 
njplot : $(OBJECTS)
35
 
        $(CC) -g -o njplot $(OBJECTS) \
36
 
        -L$(VIBRANT)/lib \
37
 
        -lvibrant -lncbi \
38
 
        $(PDFLIB)   \
39
 
        -L$(MOTIFLIB) -lXm  \
40
 
        -L/usr/X11R6/lib -lXmu -lXt -lX11 -lm
41
 
        
42
 
unrooted : $(OBJUNROOTED)
43
 
        $(CC) -g -o unrooted $(OBJUNROOTED) \
44
 
        -L$(VIBRANT)/lib -lvibrant -lncbi \
45
 
        -L$(MOTIFLIB) -lXm \
46
 
        -L/usr/X11R6/lib -lXmu -lXt -lX11  -lm
47
 
 
48
 
newicktops: njplot-vib.c
49
 
        $(CC) -DNO_GUI  -DNO_PDF -o $@ njplot-vib.c -lm
50
 
 
51
 
newicktotxt: njplot-vib.c
52
 
        $(CC) -DTTY  -o $@ njplot-vib.c -lm
53
 
 
54
 
 
55
 
.c.o : 
56
 
        $(CC) $(CFLAGS)  $?
57
 
 
58
 
clean:
59
 
        rm -f *.o
60
 
 
61
 
distclean: clean
62
 
        rm -f njplot unrooted newicktops newicktotxt