X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=TP_13%2Fexo1%2FMakefile;h=20746ac802aae220d185dd15b2d0a726549b546c;hb=bdbc4f521c21287e53bb7134d4aaa060781e09cb;hp=65b7fdc23894fa3e45df161cb73fe902c286175a;hpb=fac749d5f8fab2991c3b149b82f168cec194362b;p=TD_C.git diff --git a/TP_13/exo1/Makefile b/TP_13/exo1/Makefile index 65b7fdc..20746ac 100644 --- a/TP_13/exo1/Makefile +++ b/TP_13/exo1/Makefile @@ -7,7 +7,10 @@ # binary using the provided name. # # Set BINARY_NAME to the name of the binary file to build. -# Set BUILD_TYPE to either debug or release +# Set LIBRARY_NAME to the name of the library file to build. +# The default path for the library code and object is lib. +# By default the linker will look for $(BINARY_NAME) library name. +# Set BUILD_TYPE to either debug or release. # # Automatic dependencies code from: # http://make.mad-scientist.net/papers/advanced-auto-dependency-generation/#tldr @@ -43,7 +46,7 @@ STRIP_FLAG = -s OPTI_FLAG = -O3 endif -# Puting header files in the source directory is not the purpose of this INCLUDES variable +# Putting header files in the source directory is not the purpose of this INCLUDES variable INCLUDES := $(INCLUDES) -I$(SRC_PATH) -I$(LIBRARY_PATH) CFLAGS := $(CFLAGS) $(WARN_FLAGS) $(STD_FLAG) $(OPTI_FLAG) $(DEBUG_FLAG) $(INCLUDES) LIBCFLAGS := -fPIC $(CFLAGS)