2018-04-09 12:20:45 +00:00
|
|
|
|
2018-10-25 15:27:51 +00:00
|
|
|
include $(REP_DIR)/lib/mk/ada.inc
|
|
|
|
|
|
|
|
ADALIB = $(ADA_RTS)/adalib
|
2018-04-09 12:20:45 +00:00
|
|
|
ADAINCLUDE = $(ADA_RTS)/adainclude
|
|
|
|
|
2018-06-21 19:05:04 +00:00
|
|
|
PACKAGES = system s-stoele s-secsta a-except s-conca2 s-arit64
|
2018-04-09 12:20:45 +00:00
|
|
|
|
2018-04-16 13:26:00 +00:00
|
|
|
body_exists := $(filter $1.adb,$(shell if [ -e $2/$1.adb ]; then echo $1.adb; fi))
|
2018-04-16 13:26:00 +00:00
|
|
|
|
2018-04-09 12:20:45 +00:00
|
|
|
SRC_ADS += $(foreach package, $(PACKAGES), $(package).ads)
|
2018-04-16 13:26:00 +00:00
|
|
|
SRC_ADB += $(foreach package, $(PACKAGES), $(body_exists, $(package), $(ADA_RTS_SOURCE)))
|
|
|
|
SRC_ADB += $(foreach package, $(PACKAGES), $(body_exists, $(package), $(REP_DIR)/src/lib/ada/runtime))
|
2018-04-16 13:26:00 +00:00
|
|
|
|
|
|
|
CUSTOM_ADA_MAKE = $(CC)
|
|
|
|
CUSTOM_ADA_FLAGS = -c -gnatg -gnatp -gnatpg -gnatn2
|
|
|
|
CUSTOM_ADA_OPT = $(CC_ADA_OPT)
|
2018-04-16 13:26:00 +00:00
|
|
|
CUSTOM_ADA_INCLUDE = -I- -I$(REP_DIR)/src/lib/ada/runtime -I$(ADA_RTS_SOURCE) -I$(REP_DIR)/src/lib/ada/runtimelib
|
2018-04-09 12:20:45 +00:00
|
|
|
|
2018-04-16 13:26:00 +00:00
|
|
|
# pure C runtime implementations
|
2018-06-25 08:45:36 +00:00
|
|
|
SRC_CC += a-except_c.cc s-soflin_c.cc a-exctab_c.cc
|
2018-04-16 13:26:00 +00:00
|
|
|
|
|
|
|
# C runtime glue code
|
2018-06-21 19:04:27 +00:00
|
|
|
SRC_CC += s-secsta_c.cc libc.cc
|
2018-04-16 13:26:00 +00:00
|
|
|
|
|
|
|
# Ada packages that implement runtime functionality
|
|
|
|
SRC_ADB += ss_utils.adb
|
|
|
|
|
|
|
|
vpath %.cc $(REP_DIR)/src/lib/ada/runtimelib
|
|
|
|
vpath %.adb $(REP_DIR)/src/lib/ada/runtime $(ADA_RTS_SOURCE) $(REP_DIR)/src/lib/ada/runtimelib
|
|
|
|
vpath %.ads $(REP_DIR)/src/lib/ada/runtime $(ADA_RTS_SOURCE)
|
2018-04-09 12:20:45 +00:00
|
|
|
|
|
|
|
SHARED_LIB = yes
|