2013-05-12 19:45:55 +00:00
|
|
|
|
|
|
|
define build-platform-headers
|
|
|
|
$(call reset)
|
|
|
|
$(eval q := $D/include/$(strip $1))
|
|
|
|
$(call installto, $(PLATIND)/$(PLATFORM)/include/$(strip $1))
|
|
|
|
$(eval PLATFORM_HEADERS_$(PLATFORM) += $q)
|
|
|
|
endef
|
|
|
|
|
|
|
|
define build-platform-impl
|
|
|
|
$(call reset)
|
|
|
|
$(eval q := $D/descr)
|
|
|
|
$(call installto, $(PLATIND)/descr/$(PLATFORM))
|
|
|
|
|
|
|
|
$(eval PLATFORM_$(PLATFORM) := \
|
|
|
|
$(PLATFORM_HEADERS_$(PLATFORM)) \
|
|
|
|
$(PLATDEP)/$(PLATFORM)/ncg)
|
|
|
|
|
2013-05-12 22:51:55 +00:00
|
|
|
$(foreach f, $(platform-headers), $(call build-platform-headers, $f))
|
|
|
|
|
|
|
|
$(call reset)
|
|
|
|
$(foreach f, $(platform-libsys), $(call ackfile, $D/libsys/$f))
|
|
|
|
$(call acklibrary, $(LIBDIR)/$(PLATFORM)/libsys.a)
|
|
|
|
$(call installto, $(PLATIND)/$(PLATFORM)/libsys.a)
|
|
|
|
|
2013-05-12 19:45:55 +00:00
|
|
|
$(call build-as)
|
|
|
|
$(call build-ncg)
|
2013-05-12 22:51:55 +00:00
|
|
|
|
|
|
|
$(foreach runtime, $(RUNTIMES), $(build-runtime-$(runtime)))
|
2013-05-12 19:45:55 +00:00
|
|
|
endef
|
|
|
|
|
|
|
|
build-platform = $(eval $(call build-platform-impl, $1))
|
|
|
|
|
|
|
|
|