Mercurial > pidgin.yaz
diff src/Makefile.mingw @ 5932:bb7723f0b4b9
[gaim-migrate @ 6372]
Changed dll build rules in the mingw makefiles. Plugins will no
longer crash when built with the '-g' compile flag and plugin crashes will
now produce the correct debug info.
committer: Tailor Script <tailor@pidgin.im>
author | Herman Bloggs <hermanator12002@yahoo.com> |
---|---|
date | Sat, 21 Jun 2003 01:03:23 +0000 |
parents | 2c04c55222b7 |
children | ba3847f74387 |
line wrap: on
line diff
--- a/src/Makefile.mingw Sat Jun 21 01:01:12 2003 +0000 +++ b/src/Makefile.mingw Sat Jun 21 01:03:23 2003 +0000 @@ -26,7 +26,7 @@ # Compiler and Linker Options -CFLAGS = -g +CFLAGS = DEFINES = @@ -153,7 +153,8 @@ -lidletrack -EXE_LIBS = -lgaim -lglib-2.0 +EXE_LIBS = -lgaim \ + -lglib-2.0 ## ## RULES @@ -185,30 +186,14 @@ # BUILD DLL # -$(TARGET).def: $(DLL_OBJECTS) - dlltool -D $(TARGET).dll -z $(TARGET).def --export-all-symbols \ - --exclude-symbols WinMain@16 $^ - -$(TARGET).base: $(DLL_OBJECTS) - $(CC) -mdll $(LDFLAGS) -o junk.tmp -Wl,--base-file,$@ $(DLL_OBJECTS) $(LIB_PATHS) $(DLL_LIBS) - rm -rf junk.tmp - -$(TARGET).exp: $(TARGET).base $(TARGET).def - dlltool --dllname $(TARGET).dll --base-file $(TARGET).base \ - --output-exp $(TARGET).exp --def $(TARGET).def - -$(TARGET).dll: $(DLL_OBJECTS) $(IDLETRACK_TOP)/idletrack.dll $(TARGET).exp - $(CC) -mdll $(LDFLAGS) -o $(TARGET).dll $(DLL_OBJECTS) -Wl,$(TARGET).exp $(LIB_PATHS) $(DLL_LIBS) - rm -rf $(TARGET).exp $(TARGET).def $(TARGET).base - -$(TARGET).lib: $(TARGET).def - dlltool -D $(TARGET).dll -d $(TARGET).def -l $(TARGET).lib +$(TARGET).lib $(TARGET).dll: $(DLL_OBJECTS) $(IDLETRACK_TOP)/idletrack.dll + $(CC) -shared $(DLL_OBJECTS) $(LIB_PATHS) $(DLL_LIBS) $(DLL_LD_FLAGS) -Wl,--out-implib,$(TARGET).lib -o $(TARGET).dll # # BUILD EXE # -$(TARGET).exe: $(TARGET).lib $(EXE_OBJECTS) +$(TARGET).exe: $(TARGET).dll $(EXE_OBJECTS) $(CC) $(LDFLAGS) $(EXE_OBJECTS) $(LIB_PATHS) $(EXE_LIBS) -o $(TARGET).exe ##