-
Notifications
You must be signed in to change notification settings - Fork 43
/
Makefile.win
82 lines (68 loc) · 2.03 KB
/
Makefile.win
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
#make -f Makefile.win CROSS=i686-w64-mingw32.static
CC=$(CROSS)-gcc
CXX=$(CROSS)-g++
LD=$(CROSS)-ld
RANLIB=$(CROSS)-ranlib
AR=$(CROSS)-ar
PKG_CONFIG=$(CROSS)-pkg-config
# CONFIGURE_HOST=--host=i686-w64-mingw32.static --enable-static --disable-shared
CONFIGURE_HOST=--host=$(CROSS) --enable-static --disable-shared
all: release
ROOT=$(shell pwd)
export ROOT
include Makefile.common
include Makefile.lib
DIR_EXEC = ./executable
DIR_EXEC_DBG = ./executable/dbg
$(DIR_EXEC):
mkdir -p $@
$(DIR_EXEC_DBG):
mkdir -p $@
.PHONY: release debug profile lib lib-dbg clean tar doc
release: lib
$(MAKE) -C $(ROOT)/src release
$(MAKE) -C $(ROOT)/vcfUtils release
$(MAKE) -C $(ROOT)/bgenUtils release
debug: debug.rvt debug.vcfUtil debug.bgenUtil
debug.rvt: lib-dbg
$(MAKE) -C $(ROOT)/src debug
debug.vcfUtil: lib-dbg
$(MAKE) -C $(ROOT)/vcfUtils debug
debug.bgenUtil: lib-dbg
$(MAKE) -C $(ROOT)/bgenUtils debug
profile: lib-dbg
$(MAKE) -C $(ROOT)/src profile
$(MAKE) -C $(ROOT)/vcfUtils profile
$(MAKE) -C $(ROOT)/bgenUtils profile
##################################################
## clean
##################################################
clean:
$(MAKE) -C $(ROOT)/src clean
$(MAKE) -C $(ROOT)/vcfUtils clean
$(MAKE) -C $(ROOT)/bgenUtils clean
libclean:
$(MAKE) -C $(ROOT)/base clean
$(MAKE) -C $(ROOT)/regression clean
$(MAKE) -C $(ROOT)/libVcf clean
$(MAKE) -C $(ROOT)/libBgen clean
deepclean: clean libclean
rm -rf *~
$(MAKE) -C $(ROOT)/third deepclean
$(MAKE) -C $(ROOT)/libsrc clean
$(MAKE) -C $(ROOT)/base clean
$(MAKE) -C $(ROOT)/regression deepclean
$(MAKE) -C $(ROOT)/libVcf clean
$(MAKE) -C $(ROOT)/libBgen clean
# archive
DATE=$(shell date '+%m%d')
tar:
tar zvchf rvtest.$(DATE).tgz \
Makefile .git/HEAD .git/index \
*.h *.cpp \
src third base libVcf libBgen regression libsrc
wiki2md: README.wiki
java -jar third/wiki2html.jar README.wiki > README.html
pandoc -f html -t markdown README.html > README.md
md2wiki: README.md
pandoc -f markdown_github+pipe_tables -t mediawiki README.md > README.wiki