File: Makefile

package info (click to toggle)
dwgsim 0.1.12-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 2,452 kB
  • sloc: ansic: 3,505; python: 334; perl: 243; xml: 194; makefile: 40; sh: 16
file content (35 lines) | stat: -rw-r--r-- 825 bytes parent folder | download | duplicates (3)
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
PACKAGE_VERSION=$(shell dpkg-parsechangelog | egrep '^Version:' | cut -f 2 -d ' ')
CC       ?=	gcc
CFLAGS   +=	-Wall -O3 -I.
CPPFLAGS +=	-D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -D_USE_KNETFILE -DPACKAGE_VERSION=\"${PACKAGE_VERSION}\"
PROG      =	dwgsim

DWGSIM_AOBJS =	src/dwgsim_opt.o \
		src/mut.o \
		src/contigs.o \
		src/regions_bed.o \
		src/mut_txt.o \
		src/mut_bed.o \
		src/mut_vcf.o \
		src/mut_input.o \
		src/dwgsim.o

.SUFFIXES:.c .o
.PHONY:all clean cleanlocal

.c.o:
	$(CC) -c $(CFLAGS) $(CPPFLAGS) $< -o $@

all:$(PROG)

dwgsim: $(DWGSIM_AOBJS)
	$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $(DWGSIM_AOBJS) -lm -lz -lpthread

cleanlocal:
	rm -vfr gmon.out *.o a.out *.exe *.dSYM razip bgzip $(PROG) *~ *.a *.so.* *.so *.dylib;

clean:cleanlocal

test:
	if [ -d tmp ]; then rm -r tmp; fi
	/bin/bash testdata/test.sh