-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathmakefile
31 lines (26 loc) · 794 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
28
29
30
31
SHELL := /bin/bash
PWD := $(shell pwd)
CC = gcc
CXX = g++
UNAME := $(shell uname -s)
BLDFLAGS = -Wall -Wextra -std=c++14
BLDDFLAGS = -Wall -Wextra -std=c++14 -pedantic
CXXFLAGS = -D__STDC_CONSTANT_MACROS -D__STDINT_MACROS -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE=1 -O3
INCLUDES = /usr/include
ifeq ($(UNAME),Darwin)
CC = clang
CXX = clang++
FLAGS += -Weverything
else
CXXFLAGS += -static
endif
all: kmer-counter
debug: CXXFLAGS += -DDEBUG -g
debug: kmer-counter
kmer-counter:
$(CXX) -g $(BLDFLAGS) $(CXXFLAGS) -c kmer-counter.cpp -o kmer-counter.o
$(CXX) -g $(BLDFLAGS) $(CXXFLAGS) -I$(INCLUDES) kmer-counter.o -o kmer-counter
clean:
rm -rf *~
rm -rf kmer-counter
rm -rf kmer-counter.o