X-Git-Url: https://git.piment-noir.org/?a=blobdiff_plain;f=TP_13%2Fexo1%2FMakefile;h=fd958781e5a24c5afff621cac8df9daabc8639e3;hb=475ee86d70921638c700bc0934441c7fe2c905d1;hp=20746ac802aae220d185dd15b2d0a726549b546c;hpb=bdbc4f521c21287e53bb7134d4aaa060781e09cb;p=TD_C.git diff --git a/TP_13/exo1/Makefile b/TP_13/exo1/Makefile index 20746ac..fd95878 100644 --- a/TP_13/exo1/Makefile +++ b/TP_13/exo1/Makefile @@ -1,10 +1,13 @@ # Sample Makefile to build simple project. # # This Makefile expect all source files (.c) to be at the same level, in the -# current working directory. +# $(SRC_PATH) directory. +# +# This Makefile expect all embedded library source files (.c) to be at the same level, in the +# $(LIBRARY_PATH) directory. # # It will automatically generate dependencies, compile all files, and produce a -# binary using the provided name. +# binary using the provided name linked against the library if necessary. # # Set BINARY_NAME to the name of the binary file to build. # Set LIBRARY_NAME to the name of the library file to build. @@ -47,7 +50,7 @@ OPTI_FLAG = -O3 endif # Putting header files in the source directory is not the purpose of this INCLUDES variable -INCLUDES := $(INCLUDES) -I$(SRC_PATH) -I$(LIBRARY_PATH) +INCLUDES := $(INCLUDES) -I$(LIBRARY_PATH) CFLAGS := $(CFLAGS) $(WARN_FLAGS) $(STD_FLAG) $(OPTI_FLAG) $(DEBUG_FLAG) $(INCLUDES) LIBCFLAGS := -fPIC $(CFLAGS) LDFLAGS := $(LDFLAGS) $(STRIP_FLAG)