3 PLUGINS = cgm dummy dxf hpgl metapost pstricks shape svg wmf wpg xfig
5 #broken since StdProp overhaul : diaimport
11 for %d in ($(PLUGINS)) do nmake -nologo -f makefile.msc sub-one THIS=%d
15 @nmake -nologo -f ..\makefile.msc $(THIS).dll PACKAGE=$(THIS) OBJ_$(THIS)=1
22 PKG_DEF = ..\objects.def
24 !INCLUDE $(TOP)\glib\build\win32\make.msc
26 PKG_CFLAGS = -FImsvc_recommended_pragmas.h \
27 $(GLIB_CFLAGS) $(GTK_CFLAGS) \
28 -I. $(LIBXML2_CFLAGS) -I$(PRJ_TOP)\lib
30 PKG_LINK = $(GTK_LIBS) $(GLIB_LIBS) \
32 $(PRJ_TOP)\lib\libdia.lib
35 # Special object definitions for the various plugins, if needed
81 # this plug-in imports group_create () from dia.exe
82 PKG_LINK = $(PKG_LINK) ..\..\app\dia.lib
87 OBJECTS = $(PACKAGE).obj
91 ## compiler and linker switches
102 # cl -? describes the options
103 CC = cl -G5 -GF $(OPTIMIZE) -W3 -nologo
105 # No general LDFLAGS needed
106 LDFLAGS = /link $(LINKDEBUG)
109 CFLAGS = -I. -I$(PRJ_TOP) -DHAVE_CONFIG_H
111 $(PACKAGE).lib : $(OBJECTS)
112 lib /out:$(PACKAGE).lib $(OBJECTS)
114 $(PACKAGE).dll : $(OBJECTS) $(PKG_DEF)
115 $(CC) $(CFLAGS) -LD -Fe$(PACKAGE).dll $(OBJECTS) $(PKG_LINK) user32.lib advapi32.lib wsock32.lib $(LDFLAGS) /def:$(PKG_DEF)
116 $(PRJ_TOP)\config.h: $(PRJ_TOP)\config.h.win32
117 copy $(PRJ_TOP)\config.h.win32 $(PRJ_TOP)\config.h
120 $(CC) $(CFLAGS) -GD -c $(PKG_CFLAGS) $<
123 $(CC) $(CFLAGS) -GD -c $(PKG_CFLAGS) $<