# Shared variables used by per-target Makefile fragments. # # Source this only via the per-target make file (make/iigs.mk etc). REPO_DIR := $(abspath $(dir $(lastword $(MAKEFILE_LIST)))/..) INCLUDE_DIR := $(REPO_DIR)/include SRC_CORE := $(REPO_DIR)/src/core SRC_PORT := $(REPO_DIR)/src/port SRC_CG := $(REPO_DIR)/src/codegen SRC_68K := $(REPO_DIR)/src/shared68k EXAMPLES := $(REPO_DIR)/examples # Portable C sources for libjoey -- present on every target. CORE_C_SRCS := $(wildcard $(SRC_CORE)/*.c) # Common include flags. Per-port code can include hal.h / surfaceInternal.h # directly because SRC_CORE is in the include path. COMMON_CFLAGS := -I$(INCLUDE_DIR) -I$(SRC_CORE) -Wall -Wextra -O2