CC=c++ #CFLAGS= -fPIC -g CFLAGS= -fPIC -O3 # 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) $(CFLAGS) $(LIBLOCLIST) $(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) # Function to build a dynamic libary # $(1) - Name of the dynamic library # $(2) - Object files mkshlib=$(CC) -shared -o $(1) $(2) $(LIBLOCLIST) $(LIBLIST)