# Default rules and definitions for MacOS Darwin CC=c++ # Function to link an executable from a list of object files # $(1) - Output program name # $(2) - List of object files link=$(CC) -o $(1) $(2) $(ARC_CFLAGS) $(ARC_LIBLOCLIST) $(ARC_LIBLIST) # Function to make a library from a list of object files # $(1) - Output library name # $(2) - List of object files mklib=ar -r $(1) $(2); ranlib $(1) # Function to build a dynamic library # $(1) - Name of the dynamic library # $(2) - Object files mkshlib=$(CC) -single_module -dynamiclib -o $(1) $(2) $(ARC_LIBLOCLIST) $(ARC_LIBLIST)