Add Library Dependency Specification
This commit is contained in:
@@ -82,13 +82,16 @@ define build_target_library_arch
|
|||||||
endef
|
endef
|
||||||
|
|
||||||
define add_target_library_arch
|
define add_target_library_arch
|
||||||
|
LFLAGS += -L$(ROOTPATH)/lib/$(ARCH)
|
||||||
|
CFLAGS += -I$(ROOTPATH) -I$(ROOTPATH)/include
|
||||||
|
|
||||||
$(1).$(ARCH): $$(OBJECTS)
|
$(1).$(ARCH): $$(OBJECTS)
|
||||||
$$(call build_target_library_arch,$$@,$$(REALOBJECTS))
|
$$(call build_target_library_arch,$$@,$$(REALOBJECTS))
|
||||||
endef
|
endef
|
||||||
|
|
||||||
define add_library
|
define add_library
|
||||||
|
-include $(ROOTPATH)/Libraries/$(1)/Makefile.dep
|
||||||
LIBFILES += $(ROOTPATH)/Libraries/$(1)/lib/$(ARCH)/lib$(1).a
|
LIBFILES += $(ROOTPATH)/Libraries/$(1)/lib/$(ARCH)/lib$(1).a
|
||||||
LFLAGS += -l$(1)
|
|
||||||
LFLAGS += -L$(ROOTPATH)/Libraries/$(1)/lib/$(ARCH)
|
LFLAGS += -L$(ROOTPATH)/Libraries/$(1)/lib/$(ARCH)
|
||||||
CFLAGS += -I$(ROOTPATH)/Libraries/$(1)/include
|
CFLAGS += -I$(ROOTPATH)/Libraries/$(1)/include
|
||||||
endef
|
endef
|
||||||
@@ -122,6 +125,7 @@ define build_target
|
|||||||
endef
|
endef
|
||||||
|
|
||||||
define add_target_test_arch
|
define add_target_test_arch
|
||||||
|
-include $(ROOTPATH)/Makefile.dep
|
||||||
$(1).$(ARCH): $$(OBJECTS) $$(LIBFILES) Test/Test.o.$(ARCH)
|
$(1).$(ARCH): $$(OBJECTS) $$(LIBFILES) Test/Test.o.$(ARCH)
|
||||||
$$(call build_target_arch,$$@,$$(REALOBJECTS) $$(LIBFILES) Test/Test.o.$(ARCH))
|
$$(call build_target_arch,$$@,$$(REALOBJECTS) $$(LIBFILES) Test/Test.o.$(ARCH))
|
||||||
endef
|
endef
|
||||||
|
|||||||
Reference in New Issue
Block a user