-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile
More file actions
38 lines (30 loc) · 731 Bytes
/
makefile
File metadata and controls
38 lines (30 loc) · 731 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
31
32
33
34
35
36
37
38
BIN=./bin/
INC=./include/ \
./model/ \
./src/
LIBFLAGS=-L./bin -lseuif97
ifneq ($(OS),Windows_NT)
UNAME_S := $(shell uname -s)
ifeq ($(UNAME_S),Linux)
LIBFLAGS += -Wl,-rpath=./bin -lstdc++fs
endif
endif
CXXFLAGES=-std=c++17 -O3
SRCS=./rankinesim.cpp \
./src/rankine.cpp \
./src/core/port.cpp \
./src/core/connector.cpp \
./src/equipment/turbineex0.cpp \
./src/equipment/turbineex1.cpp \
./src/equipment/openedheaterdw0.cpp \
./src/equipment/condenser.cpp \
./src/equipment/pump.cpp \
./src/equipment/boiler.cpp \
./src/utils/jsonloader.cpp
OUTFILE=./bin/rankinesim
all: $(OUTFILE)
$(OUTFILE)
$(OUTFILE): $(SRCS)
g++ $(CXXFLAGES) -o $@ $^ $(addprefix -I,$(INC)) $(LIBFLAGS)
run:
$(OUTFILE)