![Guy Harris](/assets/img/avatar_default.png)
check for it - but not for TShark plugins, as they are expected to print to the standard output. svn path=/trunk/; revision=25653
68 lines
1.6 KiB
Makefile
68 lines
1.6 KiB
Makefile
# Makefile.nmake
|
|
# nmake file for codec_test plugin
|
|
#
|
|
# $Id$
|
|
#
|
|
|
|
include ..\..\config.nmake
|
|
include moduleinfo.nmake
|
|
|
|
include Makefile.common
|
|
|
|
CFLAGS=/WX /DHAVE_CONFIG_H /I../.. $(GLIB_CFLAGS) \
|
|
/I$(PCAP_DIR)\include -D_U_="" $(LOCAL_CFLAGS)
|
|
|
|
CPPFLAGS = $(CFLAGS) -TP
|
|
|
|
.c.obj::
|
|
$(CC) $(CPPFLAGS) -Fd$(PLUGIN_NAME).pdb -c $<
|
|
|
|
LDFLAGS = $(PLUGIN_LDFLAGS)
|
|
|
|
!IFDEF ENABLE_LIBWIRESHARK
|
|
LINK_PLUGIN_WITH=..\..\epan\libwireshark.lib
|
|
CFLAGS=/DHAVE_WIN32_LIBWIRESHARK_LIB /D_NEED_VAR_IMPORT_ $(CFLAGS)
|
|
|
|
CODEC_OBJECTS = $(CODEC_SRC:.c=.obj)
|
|
|
|
CODEC_LIBS = \
|
|
EasyG729A/EasyG729A.lib \
|
|
EasyG7231/EasyG7231.lib \
|
|
EasyG722/EasyG722.lib
|
|
|
|
OBJECTS=$(CODEC_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) $(CODEC_LIBS) $(RESOURCE)
|
|
|
|
easy_codec_plugin.obj : easy_codec_plugin.c
|
|
$(CC) $(CFLAGS) -Fd$(PLUGIN_NAME).pdb -c easy_codec_plugin.c
|
|
|
|
!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
|
|
|
|
checkapi:
|
|
$(PERL) ../../tools/checkAPIs.pl -g abort -g termoutput $(DISSECTOR_SRC)
|