Skip to content

Commit 608074f

Browse files
committed
update Makefile
1 parent f872518 commit 608074f

File tree

2 files changed

+20
-8
lines changed

2 files changed

+20
-8
lines changed

Makefile.manual

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
# Fortran stdlib Makefile
22

33
FC ?= gfortran
4+
CC ?= gcc
5+
CXX ?= g++
6+
47
FFLAGS ?= -Wall -Wextra -Wimplicit-interface -fPIC -g -fcheck=all -fno-range-check
58
FYPPFLAGS ?=
69

@@ -11,6 +14,8 @@ FYPPFLAGS += \
1114
-DPROJECT_VERSION_PATCH=$(word 3,$(VERSION))
1215

1316
export FC
17+
export CC
18+
export CXX
1419
export FFLAGS
1520
export FYPPFLAGS
1621

src/tests/hash_functions/Makefile.manual

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,16 @@
1-
CC = gcc
2-
CXX = g++
3-
4-
FFLAGS = -Wall -Wextra -Wimplicit-interface -fPIC -g -fcheck=all -fno-range-check
5-
CFLAGS = -O3
6-
CXXFLAGS = -O3
1+
FFLAGS = #-g -check all -debug all
2+
CFLAGS = #-g -debug all
3+
CXXFLAGS = #-g -debug all
4+
#CFLAGS += -P -cpp
5+
#CXXFLAGS += -P -cpp
6+
7+
#CC = gcc
8+
#CXX = g++
9+
#FFLAGS =
10+
#CFLAGS =
11+
#CXXFLAGS =
12+
#CFLAGS = -E
13+
#CXXFLAGS = -E
714

815
CPPFLAGS += -I. -I../.. -I..
916
LDFLAGS += -L../.. -L.. -lstdlib-testing -lstdlib
@@ -41,11 +48,11 @@ SpookyV2Test.o: SpookyV2Test.cpp SpookyV2.h
4148
$(CXX) $(CXXFLAGS) $(CPPFLAGS) -c SpookyV2Test.cpp -o SpookyV2Test.o
4249

4350
nmhash_scalar.o: nmhash_scalar.c nmhash_scalar.h
44-
$(CC) $(CXXFLAGS) $(CPPFLAGS) -c nmhash_scalar.c -o nmhash_scalar.o
51+
$(CC) $(CFLAGS) $(CPPFLAGS) -c nmhash_scalar.c -o nmhash_scalar.o
4552

4653
clean:
4754
rm nmhash_scalar.o SpookyV2Test.o SpookyV2.o waterhash.o pengyhash.o \
48-
libc_hash.a generate_hash_arrays.o $(PROGS) \
55+
libc_hash.a generate_hash_arrays.o $(PROGS) *.*mod\
4956
*.bin
5057

5158

0 commit comments

Comments
 (0)