32 lines
743 B
Makefile
32 lines
743 B
Makefile
|
#
|
||
|
# Link instructions for standard systems
|
||
|
#
|
||
|
|
||
|
ifdef BUILD_PROJECT
|
||
|
|
||
|
# Now include the main sub-makefile. It contains all the rules used to
|
||
|
# build the library with the previous variables defined.
|
||
|
#
|
||
|
include $(TOP)/builds/$(PROJECT).mk
|
||
|
|
||
|
# The cleanup targets.
|
||
|
#
|
||
|
clean_project: clean_project_std
|
||
|
distclean_project: distclean_project_std
|
||
|
|
||
|
# This final rule is used to link all object files into a single library.
|
||
|
# It is part of the system-specific sub-Makefile because not all
|
||
|
# librarians accept a simple syntax like
|
||
|
#
|
||
|
# librarian library_file {list of object files}
|
||
|
#
|
||
|
$(PROJECT_LIBRARY): $(OBJECTS_LIST)
|
||
|
ifdef CLEAN_LIBRARY
|
||
|
-$(CLEAN_LIBRARY) $(NO_OUTPUT)
|
||
|
endif
|
||
|
$(LINK_LIBRARY)
|
||
|
|
||
|
endif
|
||
|
|
||
|
# EOF
|