-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathMakefile
More file actions
24 lines (17 loc) · 721 Bytes
/
Makefile
File metadata and controls
24 lines (17 loc) · 721 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
export CC = gcc
export CXX = g++
export CFLAGS = -lm -pthread -Ofast -march=native -Wall -funroll-loops -ffast-math -Wno-unused-result
#export CFLAGS = -lm -pthread -Ofast -march=native -Wall -funroll-loops -ffast-math -g # debug mode
LDFLAGS = -lgsl -lm -lgslcblas
#BIN = utility.o data_helper.o metrics.o sampler.o emb_model.o sup_model.o supf_model.o
BIN = data_helper.o emb_model.o sup_model.o supf_model.o
all: main
main: main.cpp $(BIN)
$(CXX) $(CFLAGS) -o $@ main.cpp $(BIN) -I. $(LDFLAGS)
$(BIN):
$(CXX) $(CFLAGS) -c -o $@ $(subst .o,.cpp,$@) -I.
$(CXX) -MM $(CFLAGS) -c $(subst .o,.cpp,$@) -I. > $(subst .o,.d,$@)
-include $(BIN:.o=.d)
.PHONY: clean
clean:
rm -f main $(BIN) $(BIN:.o=.d) *.d *.gch *~