Skip to content

Commit

Permalink
Update makefiles
Browse files Browse the repository at this point in the history
  • Loading branch information
dhadka committed Nov 30, 2023
1 parent 89efdb8 commit ea9cda7
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions native/HBV/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ C_FLAGS = -O3 -DOUT_TO_SCREEN -DHBVMOD -DRANGER_MEMORY_TRICK -DSERIAL -lm
C_FLAGS_DEBUG = -g -O0 -DOUT_TO_SCREEN -DHBVMOD -DRANGER_MEMORY_TRICK -DSERIAL -lm

ifeq ($(OS),Windows_NT)
C_FLAGS += -static-libgcc -static-libstdc++
C_FLAGS_DEBUG += -static-libgcc -static-libstdc++
C_FLAGS += -static
C_FLAGS_DEBUG += -static
else
C_FLAGS += -DLINUX
C_FLAGS_DEBUG += -DLINUX
Expand Down
2 changes: 1 addition & 1 deletion native/LRGV/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ SHARED_DIR = ../shared
C_FLAGS=-O3 -I$(SRC_DIR) -I$(SHARED_DIR)

ifeq ($(OS),Windows_NT)
C_FLAGS += -static-libgcc -static-libstdc++
C_FLAGS += -static
else
C_FLAGS += -DLINUX
endif
Expand Down
2 changes: 1 addition & 1 deletion native/LakeProblem/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ C_FLAGS = -O3 -Wno-unused-local-typedefs -I$(SRC_DIR) -I$(SHARED_DIR) -I$(SRC_DI
SOURCE = $(SRC_DIR)/main-lake.cpp $(SHARED_DIR)/moeaframework.c

ifeq ($(OS),Windows_NT)
C_FLAGS += -static-libgcc -static-libstdc++
C_FLAGS += -static
endif

all:
Expand Down
8 changes: 4 additions & 4 deletions native/Radar/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ CC = gcc
SHARED_DIR = ../shared
C_FLAGS = -Wall -O3 -fPIC

PLATFORM := $(shell uname)
ifeq ($(PLATFORM),Linux)
EXT = so
ifeq ($(OS),Windows_NT)
C_FLAGS += -static
EXT = dll
else
EXT = dll
EXT = so
endif

all:
Expand Down
2 changes: 1 addition & 1 deletion native/WDS/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ SOURCE = $(SRC_DIR)/main.c $(SRC_DIR)/models.c $(SHARED_DIR)/moeaframework.c
C_FLAGS = -I$(SRC_DIR)/epanet2 -I$(SHARED_DIR) -Lbin -lm -lepanet2 -Wl,-R,\.

ifeq ($(OS),Windows_NT)
C_FLAGS += -static-libgcc -static-libstdc++
C_FLAGS += -static
endif

all:
Expand Down

0 comments on commit ea9cda7

Please sign in to comment.