File: Makefile.generic

package info (click to toggle)
maqview 0.2.5-12
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,444 kB
  • sloc: ansic: 14,011; cpp: 1,295; java: 178; perl: 116; sh: 101; makefile: 23
file content (56 lines) | stat: -rw-r--r-- 1,868 bytes parent folder | download | duplicates (7)
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
51
52
53
54
55
56
CC=			gcc
CXX=		g++
CFLAGS+=		-g -Wall -O2 -D_FILE_OFFSET_BITS=64 -DHAVE_FREEGLUT# -pg -fprofile-arcs -ftest-coverage
CXXFLAGS:=	$(CFLAGS)
DFLAGS=
ZOBJS=		adler32.o compress.o crc32.o deflate.o gzio.o inffast.o inflate.o \
			infback.o inftrees.o trees.o uncompr.o zutil.o
OBJS=		zrio.o btree.o maqmap_index.o read_cache.o cns_cache.o const.o stdhashc.o
PROGS=		maqindex maqview zrio
VERSION=	0.2.4
LIBS=		-lm
#For Mac
#GLLIBS=		-framework openGL -framework glut
#For Linux
#GLLIBS=	-lGL -lglut
GLLIBS=		-Wl,-Bstatic -lglut -Wl,-Bdynamic -lGL -lGLU

.SUFFIXES:.c .o .cc

.c.o:
		$(CC) -c $(CPPFLAGS) $(CFLAGS) $(DFLAGS) $< -o $@
.cc.o:
		$(CXX) -c $(CPPFLAGS) $(CXXFLAGS) $(DFLAGS) $< -o $@

all:$(PROGS)

zrio:$(ZOBJS) zrio_main.o
		$(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -o $@ -DMAIN_ZRIO zrio_main.o zrio.o $(ZOBJS)

maqindex:$(ZOBJS) $(OBJS) maqmap_index_main.o
		$(CXX) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -o $@ $(ZOBJS) $(OBJS) maqmap_index_main.o

maqview:$(ZOBJS) $(OBJS) view_goto.o MainFrame.o view_panel.o gl_gui.o
		$(CXX) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -o $@ $(ZOBJS) $(OBJS) view_goto.o view_panel.o gl_gui.o MainFrame.o $(GLLIBS)

maqview.1:maqview.pod
		pod2man --center "Bioinformatics Tools" --release "maqview-$(VERSION)" maqview.pod > $@

adler32.o: zlib.h zconf.h
compress.o: zlib.h zconf.h
crc32.o: crc32.h zlib.h zconf.h
deflate.o: deflate.h zutil.h zlib.h zconf.h
gzio.o: zutil.h zlib.h zconf.h
inffast.o: zutil.h zlib.h zconf.h inftrees.h inflate.h inffast.h
inflate.o: zutil.h zlib.h zconf.h inftrees.h inflate.h inffast.h
infback.o: zutil.h zlib.h zconf.h inftrees.h inflate.h inffast.h
inftrees.o: zutil.h zlib.h zconf.h inftrees.h
trees.o: deflate.h zutil.h zlib.h zconf.h trees.h
uncompr.o: zlib.h zconf.h
zutil.o: zutil.h zlib.h zconf.h

clear:
		rm -f *.o a.out *~ *.a

clean:
		rm -f *.o a.out *~ *.a $(PROGS) maqview.1 *.gc* gmont.out