File: Makefile

package info (click to toggle)
seaview 20060918-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 720 kB
  • ctags: 678
  • sloc: cpp: 12,527; makefile: 84; sh: 83; xml: 65
file content (49 lines) | stat: -rw-r--r-- 1,342 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
#this makefile has 2 targets
#seaview    (default target) for standard unix/linux compilation
#seaviewps  does not use the PDFLibLite library and outputs postscript 

#customize these next 3 lines
FLTK = ../fltk-1.1.6
PDF = ../PDFlib-Lite-6.0.1/libs/pdflib
X11 = /usr/X11R6

#comment out and customize next line to set helpfile name at compile-time
#HELP_NOT_IN_PATH = -DDEFAULT_HELPFILE=\"/bge/mgouy/seaview/seaview.help\"

CXX = g++

OPT = $(shell if [ '$(DEBUG)' = '' ]; then echo '-O2'; else echo '-O0'; fi)

STDCFLAGS  = -Dunix  -c $(OPT) -I$(FLTK) -I$(X11)/include $(DEBUG) $(HELP_NOT_IN_PATH)

CFLAGS = $(STDCFLAGS) -I$(PDF)
PDFLIBS = -L$(PDF) -lpdf 


#conditional macros 
seaviewps : CFLAGS = $(STDCFLAGS) -DNO_PDF -DNO_CLUSTALW


OBJECTS = custom.o use_mase_files.o regions.o load_seq.o align.o xfmatpt.o comlines.o chooser_plus.o resource.o nexus.o


seaview : seaview.o $(OBJECTS) pdf.o
	$(CXX) $(DEBUG)  seaview.o $(OBJECTS) pdf.o \
			-L$(FLTK)/lib -lfltk \
			$(PDFLIBS)   \
             -L$(X11)/lib -lX11 \
             -o seaview \
             -lm        

seaviewps : seaview.o $(OBJECTS) postscript.o
	$(CXX) $(DEBUG)  seaview.o $(OBJECTS) postscript.o \
			-L$(FLTK)/lib -lfltk \
             -L$(X11)/lib -lX11 \
             -o seaview \
             -lm        


.SUFFIXES:	.cxx .h .o

.cxx.o :
	$(CXX) $(CFLAGS) $<