Use the PLUGIN_NAME macro, to see if we can minimize the number of

changes needed to Makefile.nmake for a new plugin.

svn path=/trunk/; revision=17967
This commit is contained in:
Guy Harris 2006-04-23 17:45:22 +00:00
parent 7bd22c75c1
commit 44028fcc04
1 changed files with 5 additions and 4 deletions

View File

@ -25,9 +25,9 @@ DISSECTOR_SUPPORT_OBJECTS = $(DISSECTOR_SUPPORT_SRC:.c=.obj)
OBJECTS = $(DISSECTOR_OBJECTS) $(DISSECTOR_SUPPORT_OBJECTS) plugin.obj
h223.dll h223.exp h223.lib : $(OBJECTS) $(LINK_PLUGIN_WITH)
link -dll /out:h223.dll $(LDFLAGS) $(OBJECTS) $(LINK_PLUGIN_WITH) \
$(GLIB_LIBS)
$(PLUGIN_NAME).dll $(PLUGIN_NAME).exp $(PLUGIN_NAME).lib : $(OBJECTS) $(LINK_PLUGIN_WITH)
link -dll /out:$(PLUGIN_NAME).dll $(LDFLAGS) $(OBJECTS) \
$(LINK_PLUGIN_WITH) $(GLIB_LIBS)
#
# Build plugin.c, which contains the plugin version[] string, a
@ -74,7 +74,8 @@ plugin.c: $(DISSECTOR_SRC)
!ENDIF
clean:
rm -f $(OBJECTS) h223.dll h223.exp h223.lib *.pdb
rm -f $(OBJECTS) $(PLUGIN_NAME).dll $(PLUGIN_NAME).exp \
$(PLUGIN_NAME).lib *.pdb
distclean: clean