-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathMakefile
34 lines (27 loc) · 832 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
32
33
34
#Get OS
UNAME=$(shell uname)
# Compiler definition
CC=g++
# Flags for the compiles
ifeq ($(UNAME), Linux)
# do something Linux-y
CFLAGS= -O3 -Wno-unused-result -Wno-write-strings
else
CFLAGS= -O3 -Wno-write-strings
endif
UTILS = util/
all: designBarcode findIndexes
designBarcode: hybrid-ss-min.o CtEnergy.o
$(CC) $(CFLAGS) -fopenmp Main_GenerateandFindIndependentSet_v1.cpp hybrid-ss-min.cpp HybridMin.cpp CtEnergy.cpp energy.cpp util.cpp -o designBarcode -lpthread
findIndexes: findIndexes.o
$(CC) $(CFLAGS) findIndexes.o -o findIndexes -lpthread -lz
ifeq ($(UNAME), Linux)
findIndexes.o: findIndexes.cpp
$(CC) -I$(UTILS) -c -std=c++0x findIndexes.cpp
else
findIndexes.o: findIndexes.cpp
$(CC) -I$(UTILS) -c findIndexes.cpp
endif
clean:
rm -rf *o designBarcode
rm -rf *o findIndexes