aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: 09a157c96268d2ae308d6dd8edf5999917fa1cd8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
VERSION=\"v0.0.1\"
CC = gcc
CFLAGS = -O3 -s -mtune=native -Wall -DVERSION=$(VERSION) -Wextra
SRC = src
BIN = bin
DEST = /usr/local/bin/

all: output_dir $(BIN)/strstream $(BIN)/melting_range $(BIN)/strstreamone

output_dir: 
	mkdir -p $(BIN)
$(BIN)/strstream: $(SRC)/strstream.c
	$(CC) $(SRC)/strstream.c -o $(BIN)/strstream $(CLIBS) $(CFLAGS)
$(BIN)/strstreamone: $(SRC)/strstreamone.c
	$(CC) $(SRC)/strstreamone.c -o $(BIN)/strstreamone $(CLIBS) $(CFLAGS)
$(BIN)/melting_range: $(SRC)/melting_range.c
	$(CC) $(SRC)/melting_range.c -o $(BIN)/melting_range $(CLIBS) $(CFLAGS)

clean:
	rm -vf $(BIN)/strstream $(BIN)/melting_range $(BIN)/strstreamone

install: all
	install -c $(BIN)/strstream $(BIN)/melting_range $(BIN)/strstreamone SelectiveGenomeAmplification select_mers.py $(DEST)