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

« back to all changes in this revision

Viewing changes to .pc/fix-underlinking.patch/makefile

  • Committer: Package Import Robot
  • Author(s): Aaron M. Ucko, Aaron M. Ucko, Charles Plessy, Andreas Tille
  • Date: 2013-05-29 18:41:31 UTC
  • Revision ID: package-import@ubuntu.com-20130529184131-wt4y8f9tf1yvmxwp
Tags: 2.4-2
[ Aaron M. Ucko ]
* Team upload.
* Eliminate extraneous build dependencies, most critically lesstif2-dev,
  as Vibrant has switched to Motif now that it's free.  (Closes: #710205.)
* debian/rules: Contrive to pass hardened CPPFLAGS and LDFLAGS.
* Standards-Version: 3.9.4.  (Already compliant.)

[ Charles Plessy ]
* debian/patches/fix-underlinking.patch (new): Explicitly link njplot and
  unrooted against -lm for compatibility with strict linkers (as on Ubuntu)
  that default to --no-copy-dt-needed.  (Closes: #701756.  LP: #1133488.)

[ Andreas Tille ]
* debian/upstream: Added citation information

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 = /usr/include/ncbi
 
14
 
 
15
OBJECTS = njplot-vib.o
 
16
OBJUNROOTED = unrooted-vib.o preptree.o
 
17
 
 
18
 
 
19
CFLAGS  = -c -DWIN_MOTIF -Dunix -I$(VIBRANT) $(HELPFILENAME) $(NO_PDF)
 
20
        
 
21
all: njplot  unrooted newicktops newicktotxt
 
22
 
 
23
 
 
24
njplot : $(OBJECTS)
 
25
        $(CC) -o njplot $(OBJECTS) \
 
26
        -lvibrant -lncbi -lXm -lXt
 
27
        
 
28
unrooted : $(OBJUNROOTED)
 
29
        $(CC) -o unrooted $(OBJUNROOTED) \
 
30
        -lvibrant -lncbi -lXm -lXt
 
31
 
 
32
newicktops: njplot-vib.c
 
33
        $(CC) -DNO_GUI  -DNO_PDF -o $@ njplot-vib.c -lm
 
34
 
 
35
newicktotxt: njplot-vib.c
 
36
        $(CC) -DTTY  -o $@ njplot-vib.c -lm
 
37
 
 
38
 
 
39
.c.o : 
 
40
        $(CC) $(CFLAGS)  $?
 
41
 
 
42
clean:
 
43
        rm -f *.o
 
44
 
 
45
distclean: clean
 
46
        rm -f njplot unrooted newicktops newicktotxt