1 # Makefile for mingw (with gnu make, but without bash), use :
2 # make -f makefile.mingw
7 include $(TOP)/glib/build/win32/make.mingw
14 -DWIN32 $(LIBXML2_CFLAGS) \
20 # in GTK_CFLAGS: $(GLIB_CFLAGS)
22 PKG_LINK = -lm $(GTK2_LIBS) $(GLIB_LIBS) $(PANGO_LIBS) \
23 $(LIBXML2_LIBS) $(ZLIB_LIBS) $(INTL_LIBS)
44 diainteractiverenderer.o \
86 DEPCFLAGS = -I . -DHAVE_CONFIG_H $(PKG_CFLAGS)
93 #$(PACKAGE).lib : $(OBJECTS)
94 # lib /out:$(PACKAGE).lib $(OBJECTS)
96 #$(PACKAGE).dll : $(OBJECTS) $(PACKAGE).def
97 # $(CC) $(CFLAGS) -LD -Fe$(PACKAGE).dll $(OBJECTS) $(PKG_LINK) user32.lib advapi32.lib wsock32.lib $(LDFLAGS) /def:$(PACKAGE).def
100 $(PACKAGE).dll : $(OBJECTS) $(PACKAGE).def
101 dllwrap --mno-cygwin --dllname $(PACKAGE).dll --output-exp $(PACKAGE).exp --def $(PACKAGE).def $(OBJECTS) $(PKG_LINK) -luser32 -lwsock32 -ladvapi32
103 # how to get the functions exported ??
104 #$(PACKAGE).dll : $(OBJECTS) $(PACKAGE).def
105 # $(CC) --shared -o $(PACKAGE).dll --def $(PACKAGE).def $(OBJECTS) $(PKG_LINK) -luser32 -lwsock32 -ladvapi32 -Wl,--out-implib,$(PACKAGE).a
107 #$(PACKAGE).dll : $(OBJECTS) $(PACKAGE).def
108 # sh $(PRJ_TOP)/build/win32/build-dll libdia - $(OBJECTS) $(PKG_LINK) -luser32 -lwsock32 -ladvapi32
110 $(PRJ_TOP)/config.h: $(PRJ_TOP)/config.h.win32
111 copy $(PRJ_TOP)\config.h.win32 $(PRJ_TOP)\config.h