Skip to content

Commit

Permalink
Use C11 standard
Browse files Browse the repository at this point in the history
  • Loading branch information
dhadka committed Jan 2, 2025
1 parent 7cc1323 commit 5e22cda
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions native/HBV/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ SRC_DIR = src
CC_SERIAL = g++

#If profiling, add the -pg flag in the last line of these as well
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
C_FLAGS = -O3 -DOUT_TO_SCREEN -DHBVMOD -DRANGER_MEMORY_TRICK -DSERIAL -lm -std=c++11
C_FLAGS_DEBUG = -g -O0 -DOUT_TO_SCREEN -DHBVMOD -DRANGER_MEMORY_TRICK -DSERIAL -lm -std=c++11

ifeq ($(OS),Windows_NT)
C_FLAGS += -static
Expand Down
2 changes: 1 addition & 1 deletion native/LRGV/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ CC = g++
TARGET = lrgv
SRC_DIR = src
SHARED_DIR = ../shared
CFLAGS = -O3 -I$(SRC_DIR) -I$(SHARED_DIR)
CFLAGS = -O3 -I$(SRC_DIR) -I$(SHARED_DIR) -std=c++11
LIBS =

ifeq ($(OS),Windows_NT)
Expand Down
2 changes: 1 addition & 1 deletion native/LakeProblem/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ CC = g++
SRC_DIR = src
SHARED_DIR = ../shared
TARGET = lake
CFLAGS = -O3 -Wno-unused-local-typedefs -I$(SRC_DIR) -I$(SHARED_DIR) -I$(SRC_DIR)/boost_1_56_0
CFLAGS = -O3 -Wno-unused-local-typedefs -I$(SRC_DIR) -I$(SHARED_DIR) -I$(SRC_DIR)/boost_1_56_0 -std=c++11
SOURCE = $(SRC_DIR)/main-lake.cpp $(SHARED_DIR)/moeaframework.c
LIBS =

Expand Down
2 changes: 1 addition & 1 deletion native/Radar/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
CC = gcc
SHARED_DIR = ../shared
CFLAGS = -Wall -O3 -fPIC
CFLAGS = -Wall -O3 -fPIC -std=c11
LIBS =

ifeq ($(OS),Windows_NT)
Expand Down
2 changes: 1 addition & 1 deletion native/WDS/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ CC = gcc
SRC_DIR = src
SHARED_DIR = ../shared
SOURCE = $(SRC_DIR)/main.c $(SRC_DIR)/models.c $(SHARED_DIR)/moeaframework.c
CFLAGS = -I$(SRC_DIR)/epanet2 -I$(SHARED_DIR) -Lbin -lm -lepanet2 -Wl,-R,\.
CFLAGS = -I$(SRC_DIR)/epanet2 -I$(SHARED_DIR) -Lbin -lm -lepanet2 -Wl,-R,\. -std=c11
LIBS =

ifeq ($(OS),Windows_NT)
Expand Down

0 comments on commit 5e22cda

Please sign in to comment.