-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
30 lines (21 loc) · 744 Bytes
/
Makefile
File metadata and controls
30 lines (21 loc) · 744 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
25
26
27
28
29
30
#Makefile
CC= g++ -std=c++17 -stdlib=libc++
OBJECTS = examples/objects
SOURCES = lib/sources
MAIN = examples
BIN = bin
INCLUDES = -I lib/headers/
CFLAGS= -g -O2
all: $(BIN)/thermalGradient
$(BIN)/thermalGradient: $(OBJECTS)/thermalGradient.o $(OBJECTS)/vortex.o $(OBJECTS)/boundary_condition.o $(OBJECTS)/ran1.o
${CC} ${CFLAGS} $^ -o $@
$(OBJECTS)/thermalGradient.o: $(MAIN)/thermalGradient.cpp
${CC} -c ${CFLAGS} ${INCLUDES} $^ -o $@
$(OBJECTS)/vortex.o: $(SOURCES)/vortex.cpp
${CC} -c ${CFLAGS} ${INCLUDES} $^ -o $@
$(OBJECTS)/boundary_condition.o: $(SOURCES)/boundary_condition.cpp
${CC} -c ${CFLAGS} ${INCLUDES} $^ -o $@
$(OBJECTS)/ran1.o: $(SOURCES)/ran1.cpp
${CC} -c ${CFLAGS} ${INCLUDES} $^ -o $@
clean:
rm $(OBJECTS)/*.o