forked from osmocom/wireshark
55 lines
1.3 KiB
Makefile
55 lines
1.3 KiB
Makefile
# Makefile.nmake
|
|
# nmake file for stats_tree plugin
|
|
#
|
|
# $Id$
|
|
#
|
|
|
|
include ..\..\config.nmake
|
|
include moduleinfo.nmake
|
|
|
|
include Makefile.common
|
|
|
|
CFLAGS=/WX /DHAVE_CONFIG_H /I../.. /I../../wiretap $(GLIB_CFLAGS) \
|
|
/I$(PCAP_DIR)\include -D_U_="" $(LOCAL_CFLAGS)
|
|
|
|
.c.obj::
|
|
$(CC) $(CFLAGS) -Fdstats_tree.pdb -c $<
|
|
|
|
LDFLAGS = $(PLUGIN_LDFLAGS)
|
|
|
|
!IFDEF ENABLE_LIBWIRESHARK
|
|
LINK_PLUGIN_WITH=..\..\epan\libwireshark.lib
|
|
CFLAGS=/DHAVE_WIN32_LIBWIRESHARK_LIB /D_NEED_VAR_IMPORT_ $(CFLAGS)
|
|
|
|
TAP_OBJECTS = $(TAP_SRC:.c=.obj)
|
|
|
|
OBJECTS=$(TAP_OBJECTS)
|
|
|
|
RESOURCE=$(PLUGIN_NAME).res
|
|
|
|
all: $(PLUGIN_NAME).dll
|
|
|
|
$(PLUGIN_NAME).rc : moduleinfo.nmake
|
|
sed -e s/@PLUGIN_NAME@/$(PLUGIN_NAME)/ \
|
|
-e s/@RC_MODULE_VERSION@/$(RC_MODULE_VERSION)/ \
|
|
-e s/@RC_VERSION@/$(RC_VERSION)/ \
|
|
-e s/@MODULE_VERSION@/$(MODULE_VERSION)/ \
|
|
-e s/@PACKAGE@/$(PACKAGE)/ \
|
|
-e s/@VERSION@/$(VERSION)/ \
|
|
-e s/@MSVC_VARIANT@/$(MSVC_VARIANT)/ \
|
|
< plugin.rc.in > $@
|
|
|
|
$(PLUGIN_NAME).dll $(PLUGIN_NAME).exp $(PLUGIN_NAME).lib : $(OBJECTS) $(LINK_PLUGIN_WITH) $(RESOURCE)
|
|
link -dll /out:$(PLUGIN_NAME).dll $(LDFLAGS) $(OBJECTS) $(LINK_PLUGIN_WITH) \
|
|
$(GLIB_LIBS) $(RESOURCE)
|
|
|
|
!ENDIF
|
|
|
|
clean:
|
|
rm -f $(OBJECTS) $(PLUGIN_NAME).dll $(PLUGIN_NAME).dll.manifest $(PLUGIN_NAME).exp \
|
|
$(RESOURCE) $(PLUGIN_NAME).rc $(PLUGIN_NAME).lib *.pdb
|
|
|
|
distclean: clean
|
|
|
|
maintainer-clean: distclean
|