-
Notifications
You must be signed in to change notification settings - Fork 51
/
Makefile
27 lines (19 loc) · 707 Bytes
/
Makefile
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
# Edit the following variables as needed
HDF_INSTALL=$(CONDA_PREFIX)
EXTLIB=-L$(HDF_INSTALL)/lib -Wl,-rpath,$(HDF_INSTALL)/lib
CC=gcc
LIB=-lz -lm -lhdf5 -lhdf5_hl
INCLUDE=-I$(HDF_INSTALL)/include
LIBSHDF=$(EXTLIB)
CFLAGS=-DH5_USE_16_API $(INCLUDE) -Wall -g
objects=vcf.o impute.o util.o memutil.o err.o chrom.o snptab.o seq.o nuc.o sampletab.o
default: all
$(objects): %.o: %.c %.h
$(CC) -c $(CFLAGS) $< -o $@ $(INCLUDE)
snp2h5: snp2h5.o $(objects)
$(CC) $(CFLAGS) -o $@ $(objects) snp2h5.c $(LIBSHDF) $(LIB)
fasta2h5: fasta2h5.o $(objects)
$(CC) $(CFLAGS) -o $@ $(objects) fasta2h5.c $(LIBSHDF) $(LIB)
all: snp2h5 fasta2h5 $(objects)
clean:
rm -f $(objects) snp2h5.o fasta2h5.o snp2h5 fasta2h5