-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.mk
More file actions
37 lines (28 loc) · 1.03 KB
/
config.mk
File metadata and controls
37 lines (28 loc) · 1.03 KB
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
# Root of the repository (auto-detected)
ROOT_DIR := $(dir $(lastword $(MAKEFILE_LIST)))
# Load personalizable settings from .env
-include $(ROOT_DIR).env
export MVS_HOST MVS_PORT MVS_USER MVS_PASS
export MVS_JOBCLASS MVS_MSGCLASS
# Tools path (mvsasm etc.)
export PATH := $(ROOT_DIR)scripts:$(PATH)
# Cross-compiler
CC := c2asm370
CFLAGS := -fverbose-asm -S -O1
# Version (override on command line or in .env)
HTTPD_VERSION ?= 4.0.0-dev
# Defines and include paths
DEFS := -DHTTPD_VERSION=\"$(HTTPD_VERSION)\"
INC_DIR := $(ROOT_DIR)include
INC1 := $(ROOT_DIR)credentials/include
INC2 := $(ROOT_DIR)contrib/crent370_sdk/inc
INC3 := $(ROOT_DIR)contrib/ufs370_sdk/inc
INC4 := $(ROOT_DIR)contrib/mqtt370_sdk/inc
INCS := -I$(INC_DIR) -I$(INC1) -I$(INC2) -I$(INC3) -I$(INC4)
CFLAGS += $(DEFS) $(INCS)
# Map .env variables to mvsasm exports
export MAC1=$(CRENT_MACLIB)
export MVSASM_PUNCH=$(HTTPD_PUNCH)
export MVSASM_SYSLMOD=$(HTTPD_SYSLMOD)
# Warning collection file
export BUILD_WARNINGS := $(ROOT_DIR).build-warnings