From 92998412716a7ae7559a6b5a0a04cfab2b10a83e Mon Sep 17 00:00:00 2001 From: Calvin Morrison Date: Tue, 29 Oct 2013 15:32:12 -0400 Subject: append variables in makefile to reduce redundancy --- src/c/Makefile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/c/Makefile b/src/c/Makefile index 0e03ad8..1d3581d 100644 --- a/src/c/Makefile +++ b/src/c/Makefile @@ -3,12 +3,14 @@ UNAME := $(shell uname) CC = gcc QUIKR_TRAIN_CFLAGS = -D$(UNAME) -DVERSION=$(VERSION) MULTIFASTA_CFLAGS = -pthread -L../ -I../ -std=gnu99 -fopenmp -D$(UNAME) -DVERSION=$(VERSION) -QUIKR_CFLAGS = -std=gnu99 -D$(UNAME) -DVERSION=$(VERSION) +QUIKR_CFLAGS = -D$(UNAME) -DVERSION=$(VERSION) +CFLAGS = -Wall -Wextra -lm -lz + ifndef DEBUG -CFLAGS = -O3 -s -mtune=native -Wextra -Wall -lm -lz +CFLAGS += -O3 -s -mtune=native else -CFLAGS = -ggdb3 -O0 -Wall -Wextra -lm -lz +CFLAGS += -ggdb3 -O0 endif all: nnls.o kmer_utils.o quikr_train quikr multifasta_to_otu -- cgit v1.2.3