-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
24 lines (17 loc) · 719 Bytes
/
Makefile
File metadata and controls
24 lines (17 loc) · 719 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
# Get Homebrew prefix (works for both Apple Silicon and Intel Macs)
BREW_PREFIX := $(shell brew --prefix)
CC = clang
# Add GMP include path: -I$(BREW_PREFIX)/include
# Add libomp include path: -I$(BREW_PREFIX)/opt/libomp/include
CFLAGS = -std=c99 -Wall -Wextra -O2 -Xpreprocessor -fopenmp -I$(BREW_PREFIX)/include -I$(BREW_PREFIX)/opt/libomp/include
# Add GMP library path: -L$(BREW_PREFIX)/lib
# Add libomp library path: -L$(BREW_PREFIX)/opt/libomp/lib
LDFLAGS = -L$(BREW_PREFIX)/lib -lgmp -L$(BREW_PREFIX)/opt/libomp/lib -lomp
TARGET = proth_runner_c
SRC = proth_runner.c
.PHONY: all clean
all: $(TARGET)
$(TARGET): $(SRC)
$(CC) $(CFLAGS) -o $(TARGET) $(SRC) $(LDFLAGS)
clean:
rm -f $(TARGET) poth_k_log.csv