Untitled
unknown
makefile
17 days ago
15 kB
4
Indexable
Never
########################################################################### ## Makefile generated for component 'CInterface0'. ## ## Makefile : CInterface0.mk ## Generated on : Mon Jun 03 13:10:21 2024 ## Final product: $(RELATIVE_PATH_TO_ANCHOR)/CInterface0_win64.dll ## Product type : shared library ## ########################################################################### ########################################################################### ## MACROS ########################################################################### # Macro Descriptions: # PRODUCT_NAME Name of the system to build # MAKEFILE Name of this makefile # COMPILER_COMMAND_FILE Compiler command listing model reference header paths # CMD_FILE Command file # DEF_FILE Definition file PRODUCT_NAME = CInterface0 MAKEFILE = CInterface0.mk MATLAB_ROOT = D:/MATLAB MATLAB_BIN = D:/MATLAB/bin MATLAB_ARCH_BIN = $(MATLAB_BIN)/win64 START_DIR = C:/Users/USMANA~1/DOWNLO~1/EXC1_2~1 SOLVER = SOLVER_OBJ = CLASSIC_INTERFACE = 0 TGT_FCN_LIB = ISO_C MODEL_HAS_DYNAMICALLY_LOADED_SFCNS = 0 RELATIVE_PATH_TO_ANCHOR = .. COMPILER_COMMAND_FILE = CInterface0_comp.rsp CMD_FILE = CInterface0.rsp DEF_FILE = $(PRODUCT_NAME).def C_STANDARD_OPTS = -fwrapv CPP_STANDARD_OPTS = -fwrapv ########################################################################### ## TOOLCHAIN SPECIFICATIONS ########################################################################### # Toolchain Name: MinGW64 | gmake (64-bit Windows) # Supported Version(s): 8.x # ToolchainInfo Version: 2023b # Specification Revision: 1.0 # #------------------------------------------- # Macros assumed to be defined elsewhere #------------------------------------------- # C_STANDARD_OPTS # CPP_STANDARD_OPTS # MINGW_ROOT # MINGW_C_STANDARD_OPTS #----------- # MACROS #----------- WARN_FLAGS = -Wall -W -Wwrite-strings -Winline -Wstrict-prototypes -Wnested-externs -Wpointer-arith -Wcast-align WARN_FLAGS_MAX = $(WARN_FLAGS) -Wcast-qual -Wshadow CPP_WARN_FLAGS = -Wall -W -Wwrite-strings -Winline -Wpointer-arith -Wcast-align CPP_WARN_FLAGS_MAX = $(CPP_WARN_FLAGS) -Wcast-qual -Wshadow MW_EXTERNLIB_DIR = $(MATLAB_ROOT)/extern/lib/win64/mingw64 SHELL = %SystemRoot%/system32/cmd.exe TOOLCHAIN_SRCS = TOOLCHAIN_INCS = TOOLCHAIN_LIBS = -lws2_32 #------------------------ # BUILD TOOL COMMANDS #------------------------ # C Compiler: GNU C Compiler CC_PATH = $(MINGW_ROOT) CC = "$(CC_PATH)/gcc" # Linker: GNU Linker LD_PATH = $(MINGW_ROOT) LD = "$(LD_PATH)/g++" # C++ Compiler: GNU C++ Compiler CPP_PATH = $(MINGW_ROOT) CPP = "$(CPP_PATH)/g++" # C++ Linker: GNU C++ Linker CPP_LD_PATH = $(MINGW_ROOT) CPP_LD = "$(CPP_LD_PATH)/g++" # Archiver: GNU Archiver AR_PATH = $(MINGW_ROOT) AR = "$(AR_PATH)/ar" # MEX Tool: MEX Tool MEX_PATH = $(MATLAB_ARCH_BIN) MEX = "$(MEX_PATH)/mex" # Download: Download DOWNLOAD = # Execute: Execute EXECUTE = $(PRODUCT) # Builder: GMAKE Utility MAKE_PATH = $(MINGW_ROOT) MAKE = "$(MAKE_PATH)/mingw32-make.exe" #------------------------- # Directives/Utilities #------------------------- CDEBUG = -g C_OUTPUT_FLAG = -o LDDEBUG = -g OUTPUT_FLAG = -o CPPDEBUG = -g CPP_OUTPUT_FLAG = -o CPPLDDEBUG = -g OUTPUT_FLAG = -o ARDEBUG = STATICLIB_OUTPUT_FLAG = MEX_DEBUG = -g RM = @del ECHO = @echo MV = @move RUN = #---------------------------------------- # "Faster Builds" Build Configuration #---------------------------------------- ARFLAGS = ruvs CFLAGS = -c $(MINGW_C_STANDARD_OPTS) -m64 \ -O0 CPPFLAGS = -c $(CPP_STANDARD_OPTS) -m64 \ -O0 CPP_LDFLAGS = -static -m64 CPP_SHAREDLIB_LDFLAGS = -shared -Wl,--no-undefined \ -Wl,--out-implib,$(notdir $(basename $(PRODUCT))).lib DOWNLOAD_FLAGS = EXECUTE_FLAGS = LDFLAGS = -static -m64 MEX_CPPFLAGS = MEX_CPPLDFLAGS = MEX_CFLAGS = MEX_LDFLAGS = MAKE_FLAGS = -f $(MAKEFILE) SHAREDLIB_LDFLAGS = -shared -Wl,--no-undefined \ -Wl,--out-implib,$(notdir $(basename $(PRODUCT))).lib ########################################################################### ## OUTPUT INFO ########################################################################### PRODUCT = $(RELATIVE_PATH_TO_ANCHOR)/CInterface0_win64.dll PRODUCT_TYPE = "shared library" BUILD_TYPE = "Shared Library Target" ########################################################################### ## INCLUDE PATHS ########################################################################### INCLUDES_BUILDINFO = INCLUDES = $(INCLUDES_BUILDINFO) ########################################################################### ## DEFINES ########################################################################### DEFINES_BUILD_ARGS = -DCLASSIC_INTERFACE=0 -DALLOCATIONFCN=0 -DTERMFCN=1 -DONESTEPFCN=1 -DMAT_FILE=0 -DMULTI_INSTANCE_CODE=0 -DINTEGER_CODE=0 -DMT=0 DEFINES_CUSTOM = DEFINES_OPTS = -DTID01EQ=1 DEFINES_STANDARD = -DMODEL=CInterface0 -DNUMST=2 -DNCSTATES=3 -DHAVESTDIO -DMODEL_HAS_DYNAMICALLY_LOADED_SFCNS=0 DEFINES = $(DEFINES_BUILD_ARGS) $(DEFINES_CUSTOM) $(DEFINES_OPTS) $(DEFINES_STANDARD) ########################################################################### ## SOURCE FILES ########################################################################### SRCS = $(START_DIR)/CInterface0_ert_shrlib_rtw/CInterface0.c MAIN_SRC = $(START_DIR)/CInterface0_ert_shrlib_rtw/ert_main.c ALL_SRCS = $(SRCS) $(MAIN_SRC) ########################################################################### ## OBJECTS ########################################################################### OBJS = CInterface0.obj MAIN_OBJ = ert_main.obj ALL_OBJS = $(OBJS) $(MAIN_OBJ) ########################################################################### ## PREBUILT OBJECT FILES ########################################################################### PREBUILT_OBJS = ########################################################################### ## LIBRARIES ########################################################################### LIBS = ########################################################################### ## SYSTEM LIBRARIES ########################################################################### SYSTEM_LIBS = ########################################################################### ## ADDITIONAL TOOLCHAIN FLAGS ########################################################################### #--------------- # C Compiler #--------------- CFLAGS_TFL = -msse2 CFLAGS_BASIC = $(DEFINES) $(INCLUDES) @$(COMPILER_COMMAND_FILE) CFLAGS += $(CFLAGS_TFL) $(CFLAGS_BASIC) #----------------- # C++ Compiler #----------------- CPPFLAGS_TFL = -msse2 CPPFLAGS_BASIC = $(DEFINES) $(INCLUDES) @$(COMPILER_COMMAND_FILE) CPPFLAGS += $(CPPFLAGS_TFL) $(CPPFLAGS_BASIC) #--------------------- # MEX C++ Compiler #--------------------- MEX_CPP_Compiler_BASIC = @$(COMPILER_COMMAND_FILE) MEX_CPPFLAGS += $(MEX_CPP_Compiler_BASIC) #----------------- # MEX Compiler #----------------- MEX_Compiler_BASIC = @$(COMPILER_COMMAND_FILE) MEX_CFLAGS += $(MEX_Compiler_BASIC) ########################################################################### ## INLINED COMMANDS ########################################################################### MINGW_C_STANDARD_OPTS = $(C_STANDARD_OPTS) ########################################################################### ## PHONY TARGETS ########################################################################### .PHONY : all build clean info prebuild download execute all : build @echo "### Successfully generated all binary outputs." build : prebuild $(PRODUCT) prebuild : download : $(PRODUCT) execute : download ########################################################################### ## FINAL TARGET ########################################################################### #---------------------------------------- # Create a shared library #---------------------------------------- $(PRODUCT) : $(OBJS) $(PREBUILT_OBJS) @echo "### Creating shared library "$(PRODUCT)" ..." $(LD) $(SHAREDLIB_LDFLAGS) -o $(PRODUCT) @$(CMD_FILE) $(SYSTEM_LIBS) $(TOOLCHAIN_LIBS) @echo "### Created: $(PRODUCT)" ########################################################################### ## INTERMEDIATE TARGETS ########################################################################### #--------------------- # SOURCE-TO-OBJECT #--------------------- %.obj : %.c $(CC) $(CFLAGS) -o "$@" "$<" %.obj : %.cpp $(CPP) $(CPPFLAGS) -o "$@" "$<" %.obj : %.cc $(CPP) $(CPPFLAGS) -o "$@" "$<" %.obj : %.cp $(CPP) $(CPPFLAGS) -o "$@" "$<" %.obj : %.cxx $(CPP) $(CPPFLAGS) -o "$@" "$<" %.obj : %.CPP $(CPP) $(CPPFLAGS) -o "$@" "$<" %.obj : %.c++ $(CPP) $(CPPFLAGS) -o "$@" "$<" %.obj : $(RELATIVE_PATH_TO_ANCHOR)/%.c $(CC) $(CFLAGS) -o "$@" "$<" %.obj : $(RELATIVE_PATH_TO_ANCHOR)/%.cpp $(CPP) $(CPPFLAGS) -o "$@" "$<" %.obj : $(RELATIVE_PATH_TO_ANCHOR)/%.cc $(CPP) $(CPPFLAGS) -o "$@" "$<" %.obj : $(RELATIVE_PATH_TO_ANCHOR)/%.cp $(CPP) $(CPPFLAGS) -o "$@" "$<" %.obj : $(RELATIVE_PATH_TO_ANCHOR)/%.cxx $(CPP) $(CPPFLAGS) -o "$@" "$<" %.obj : $(RELATIVE_PATH_TO_ANCHOR)/%.CPP $(CPP) $(CPPFLAGS) -o "$@" "$<" %.obj : $(RELATIVE_PATH_TO_ANCHOR)/%.c++ $(CPP) $(CPPFLAGS) -o "$@" "$<" %.obj : $(START_DIR)/%.c $(CC) $(CFLAGS) -o "$@" "$<" %.obj : $(START_DIR)/%.cpp $(CPP) $(CPPFLAGS) -o "$@" "$<" %.obj : $(START_DIR)/%.cc $(CPP) $(CPPFLAGS) -o "$@" "$<" %.obj : $(START_DIR)/%.cp $(CPP) $(CPPFLAGS) -o "$@" "$<" %.obj : $(START_DIR)/%.cxx $(CPP) $(CPPFLAGS) -o "$@" "$<" %.obj : $(START_DIR)/%.CPP $(CPP) $(CPPFLAGS) -o "$@" "$<" %.obj : $(START_DIR)/%.c++ $(CPP) $(CPPFLAGS) -o "$@" "$<" %.obj : $(START_DIR)/CInterface0_ert_shrlib_rtw/%.c $(CC) $(CFLAGS) -o "$@" "$<" %.obj : $(START_DIR)/CInterface0_ert_shrlib_rtw/%.cpp $(CPP) $(CPPFLAGS) -o "$@" "$<" %.obj : $(START_DIR)/CInterface0_ert_shrlib_rtw/%.cc $(CPP) $(CPPFLAGS) -o "$@" "$<" %.obj : $(START_DIR)/CInterface0_ert_shrlib_rtw/%.cp $(CPP) $(CPPFLAGS) -o "$@" "$<" %.obj : $(START_DIR)/CInterface0_ert_shrlib_rtw/%.cxx $(CPP) $(CPPFLAGS) -o "$@" "$<" %.obj : $(START_DIR)/CInterface0_ert_shrlib_rtw/%.CPP $(CPP) $(CPPFLAGS) -o "$@" "$<" %.obj : $(START_DIR)/CInterface0_ert_shrlib_rtw/%.c++ $(CPP) $(CPPFLAGS) -o "$@" "$<" %.obj : $(MATLAB_ROOT)/rtw/c/src/%.c $(CC) $(CFLAGS) -o "$@" "$<" %.obj : $(MATLAB_ROOT)/rtw/c/src/%.cpp $(CPP) $(CPPFLAGS) -o "$@" "$<" %.obj : $(MATLAB_ROOT)/rtw/c/src/%.cc $(CPP) $(CPPFLAGS) -o "$@" "$<" %.obj : $(MATLAB_ROOT)/rtw/c/src/%.cp $(CPP) $(CPPFLAGS) -o "$@" "$<" %.obj : $(MATLAB_ROOT)/rtw/c/src/%.cxx $(CPP) $(CPPFLAGS) -o "$@" "$<" %.obj : $(MATLAB_ROOT)/rtw/c/src/%.CPP $(CPP) $(CPPFLAGS) -o "$@" "$<" %.obj : $(MATLAB_ROOT)/rtw/c/src/%.c++ $(CPP) $(CPPFLAGS) -o "$@" "$<" %.obj : $(MATLAB_ROOT)/simulink/src/%.c $(CC) $(CFLAGS) -o "$@" "$<" %.obj : $(MATLAB_ROOT)/simulink/src/%.cpp $(CPP) $(CPPFLAGS) -o "$@" "$<" %.obj : $(MATLAB_ROOT)/simulink/src/%.cc $(CPP) $(CPPFLAGS) -o "$@" "$<" %.obj : $(MATLAB_ROOT)/simulink/src/%.cp $(CPP) $(CPPFLAGS) -o "$@" "$<" %.obj : $(MATLAB_ROOT)/simulink/src/%.cxx $(CPP) $(CPPFLAGS) -o "$@" "$<" %.obj : $(MATLAB_ROOT)/simulink/src/%.CPP $(CPP) $(CPPFLAGS) -o "$@" "$<" %.obj : $(MATLAB_ROOT)/simulink/src/%.c++ $(CPP) $(CPPFLAGS) -o "$@" "$<" %.obj : $(MATLAB_ROOT)/toolbox/simulink/blocks/src/%.c $(CC) $(CFLAGS) -o "$@" "$<" %.obj : $(MATLAB_ROOT)/toolbox/simulink/blocks/src/%.cpp $(CPP) $(CPPFLAGS) -o "$@" "$<" %.obj : $(MATLAB_ROOT)/toolbox/simulink/blocks/src/%.cc $(CPP) $(CPPFLAGS) -o "$@" "$<" %.obj : $(MATLAB_ROOT)/toolbox/simulink/blocks/src/%.cp $(CPP) $(CPPFLAGS) -o "$@" "$<" %.obj : $(MATLAB_ROOT)/toolbox/simulink/blocks/src/%.cxx $(CPP) $(CPPFLAGS) -o "$@" "$<" %.obj : $(MATLAB_ROOT)/toolbox/simulink/blocks/src/%.CPP $(CPP) $(CPPFLAGS) -o "$@" "$<" %.obj : $(MATLAB_ROOT)/toolbox/simulink/blocks/src/%.c++ $(CPP) $(CPPFLAGS) -o "$@" "$<" CInterface0.obj : $(START_DIR)/CInterface0_ert_shrlib_rtw/CInterface0.c $(CC) $(CFLAGS) -o "$@" "$<" ert_main.obj : $(START_DIR)/CInterface0_ert_shrlib_rtw/ert_main.c $(CC) $(CFLAGS) -o "$@" "$<" ########################################################################### ## DEPENDENCIES ########################################################################### $(ALL_OBJS) : rtw_proj.tmw $(COMPILER_COMMAND_FILE) $(MAKEFILE) ########################################################################### ## MISCELLANEOUS TARGETS ########################################################################### info : @echo "### PRODUCT = $(PRODUCT)" @echo "### PRODUCT_TYPE = $(PRODUCT_TYPE)" @echo "### BUILD_TYPE = $(BUILD_TYPE)" @echo "### INCLUDES = $(INCLUDES)" @echo "### DEFINES = $(DEFINES)" @echo "### ALL_SRCS = $(ALL_SRCS)" @echo "### ALL_OBJS = $(ALL_OBJS)" @echo "### LIBS = $(LIBS)" @echo "### MODELREF_LIBS = $(MODELREF_LIBS)" @echo "### SYSTEM_LIBS = $(SYSTEM_LIBS)" @echo "### TOOLCHAIN_LIBS = $(TOOLCHAIN_LIBS)" @echo "### CFLAGS = $(CFLAGS)" @echo "### LDFLAGS = $(LDFLAGS)" @echo "### SHAREDLIB_LDFLAGS = $(SHAREDLIB_LDFLAGS)" @echo "### CPPFLAGS = $(CPPFLAGS)" @echo "### CPP_LDFLAGS = $(CPP_LDFLAGS)" @echo "### CPP_SHAREDLIB_LDFLAGS = $(CPP_SHAREDLIB_LDFLAGS)" @echo "### ARFLAGS = $(ARFLAGS)" @echo "### MEX_CFLAGS = $(MEX_CFLAGS)" @echo "### MEX_CPPFLAGS = $(MEX_CPPFLAGS)" @echo "### MEX_LDFLAGS = $(MEX_LDFLAGS)" @echo "### MEX_CPPLDFLAGS = $(MEX_CPPLDFLAGS)" @echo "### DOWNLOAD_FLAGS = $(DOWNLOAD_FLAGS)" @echo "### EXECUTE_FLAGS = $(EXECUTE_FLAGS)" @echo "### MAKE_FLAGS = $(MAKE_FLAGS)" clean : $(ECHO) "### Deleting all derived files ..." $(RM) $(subst /,\,$(PRODUCT)) $(RM) $(subst /,\,$(ALL_OBJS)) $(ECHO) "### Deleted all derived files."
Leave a Comment