~ubuntu-branches/ubuntu/raring/njplot/raring-proposed

« back to all changes in this revision

Viewing changes to .pc/no_unneded_libs.patch/makefile

  • Committer: Bazaar Package Importer
  • Author(s): Andreas Tille
  • Date: 2011-02-22 13:15:08 UTC
  • mfrom: (3.1.5 sid)
  • Revision ID: james.westby@ubuntu.com-20110222131508-8jg4f3vrtoqc8ktp
Tags: 2.3-3
* Standards-Version: 3.9.1 (no changes needed)
* debian/source/format: 3.0 (quilt)
* debian/rules: Do not use deprecated variable DEB_OPT_FLAG any
  more but use CFLAGS instead
  Closes: #614432
* debian/patches: Do not link against unused libs (X11, Xmu)

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