1 # Makefile for mingw (with gnu make, but without bash), use :
2 # make -f makefile.mingw
9 include $(TOP)/glib/build/win32/make.mingw
11 LIBART = $(TOP)/libart_lgpl
14 PKG_CFLAGS = -DHAVE_CONFIG_H \
16 -I.. $(GLIB_CFLAGS) $(GTK2_CFLAGS) \
17 $(LIBXML2_CFLAGS) $(PNG_CFLAGS) \
18 -I$(PRJ_TOP)/lib -I$(LIBART)/.. -DHAVE_LIBART
20 PKG_LINK = $(GLIB_LIBS) $(GTK2_LIBS) $(PANGO_LIBS) \
21 $(LIBXML2_LIBS) $(PNG_LIBS) \
22 -L $(PRJ_TOP)/lib -llibdia -L $(LIBART) -llibart \
29 connectionpoint_ops.o \
37 diagram_tree_menu_callbacks.o \
38 diagram_tree_window.o \
79 sheets_dialog_callbacks.o \
88 DEPCFLAGS = $(PKG_CFLAGS)
95 $(PACKAGE).res : $(PACKAGE).rc $(PACKAGE).ico
96 rc -r -fo $(PACKAGE).res $(PACKAGE).rc
98 RESOURCE = $(PACKAGE).res
100 $(PACKAGE).lib : $(OBJECTS)
101 lib /out:$(PACKAGE).lib $(OBJECTS)
103 $(PACKAGE).dll : $(OBJECTS) $(PACKAGE).def
104 $(CC) $(CFLAGS) -LD -Fe$(PACKAGE).dll $(OBJECTS) $(PKG_LINK) user32.lib advapi32.lib wsock32.lib comdlg32.lib winspool.lib $(LDFLAGS) /def:$(PACKAGE).def
106 $(PACKAGE).exe : $(OBJECTS) $(PACKAGE).def $(PACKAGE).res
107 $(CC) $(CFLAGS) -s -o $@ $(OBJECTS) $(LDFLAGS) $(PKG_LINK) -luser32 -lgdi32 -ladvapi32 -lshell32 -lwsock32 -lwinspool -lcomdlg32
109 # /def:$(PACKAGE).def
111 $(PRJ_TOP)\config.h: $(PRJ_TOP)\config.h.win32
112 copy $(PRJ_TOP)\config.h.win32 $(PRJ_TOP)\config.h