1010!ifdef <%normalize(uc(compiler))%>
1111CC = <%cc%>
1212OPTIMIZE_CFLAGS = <%optimize_flags%>
13+ UNICODE_CFLAGS = <%unicode_flags%>
1314PDB_FLAGS = <%pdb_flags%>
1415DEBUG_CFLAGS = <%debug_flags%>
1516RELEASE_CFLAGS = <%release_flags%>
@@ -40,6 +41,7 @@ OBJECTSEARCHPATH = \
4041EXEFLAGS = <%exeflags%>
4142LINKER_DLL_ARGUMENTS = <%linker_dll_arguments%>
4243LINKER_EXE_ARGUMENTS = <%linker_exe_arguments%>
44+ DEBUG_EXT = <%debug_ext%>
4345!else
4446<%endfor%>
4547!error You must select one of these compilers:<%foreach(compilers)%> <%normalize(uc(compiler))%><%endfor%>
@@ -66,9 +68,6 @@ STATIC_FLAGS =<%foreach(staticflags)%> -D<%staticflag%><%endfor%>
6668DYN_FLAGS =<%foreach(dynamicflags)%> -D<%dynamicflag%><%endfor%>
6769<%endif%>
6870<%endif%>
69- <%if(postlinkrmext)%>
70- POSTLINKRM = <%postlinkrmext%>
71- <%endif%>
7271<%if(exename)%>
7372EXEOUTPUTDIR = <%if(exeout)%><%exeout%><%if(windows_style)%>\<%output_dir("Debug")%><%endif%><%else%><%if(windows_style)%><%output_dir("Debug")%><%else%><%output_dir(".")%><%endif%><%endif%>\\
7473<%endif%>
@@ -80,7 +79,7 @@ EXEOUTPUTDIR = <%if(exeout)%><%exeout%><%if(windows_style)%>\<%output_dir("Debug
8079<%endfor%>
8180
8281!ifdef UNICODE
83- UC_CFLAGS = <%unicode_flags%>
82+ UC_CFLAGS = $(UNICODE_CFLAGS)
8483UNICODE_DIR = Unicode\\
8584UC_MAIN = w
8685ULIBMODIFIER = <%unicode_lib_modifier%>
@@ -204,6 +203,7 @@ CFLAGS = \
204203<%foreach(macros common_defines)%>
205204 -D<%macro%> \
206205<%endfor%>
206+ -DMPC_LIB_MODIFIER=\"$(LIBMODIFIER)$(ULIBMODIFIER)\" \
207207<%foreach(includes)%>
208208 -I"<%include%>" \
209209<%endfor%>
@@ -390,7 +390,7 @@ realclean: clean
390390<%endif%>
391391<%endif%>
392392<%if(exename || sharedname || staticname)%>
393- @del "$(OUTPUTDIR)$(NAME)$(POSTLINKRM )" 2>NUL
393+ @del "$(OUTPUTDIR)$(NAME)$(DEBUG_EXT )" 2>NUL
394394<%endif%>
395395<%if(postclean)%>
396396 -<%eval(postclean)%>
0 commit comments