Use ENC_NA as proto_tree_add_item() encoding arg for FT_ETHER hf[] field type.
[obnox/wireshark/wip.git] / plugins / tpg / Makefile.nmake
1 #
2 # $Id$
3 #
4
5 include ..\..\config.nmake
6 include <win32.mak>
7
8 ############### no need to modify below this line #########
9
10 LEMON=..\..\tools\lemon
11
12 CFLAGS=$(WARNINGS_ARE_ERRORS) $(STANDARD_CFLAGS) \
13         /I../.. $(GLIB_CFLAGS) /I$(LEMON) \
14         /I$(PCAP_DIR)\include
15
16 .c.obj::
17         $(CC) $(CFLAGS) -Fdmate.pdb -c $<
18
19 LDFLAGS = $(PLUGIN_LDFLAGS)
20
21 !IFDEF ENABLE_LIBWIRESHARK
22 LINK_PLUGIN_WITH=..\..\epan\libwireshark.lib
23 CFLAGS=/D_NEED_VAR_IMPORT_ $(CFLAGS)
24
25 OBJECTS=packet-mate.obj\
26                 mate_setup.obj\
27                 mate_runtime.obj\
28                 mate_util.obj\
29                 mate_plugin.obj\
30                 mate_grammar.obj\
31                 mate_parser.obj
32
33 mate.dll mate.exp mate.lib : $(OBJECTS) $(LINK_PLUGIN_WITH)
34         link -dll /out:mate.dll $(LDFLAGS) $(OBJECTS) $(LINK_PLUGIN_WITH) \
35         $(GLIB_LIBS)
36
37 !ENDIF
38
39 clean:
40         rm -f $(OBJECTS) mate.dll mate.exp mate.lib *.pdb
41
42 #
43 # We remove the generated files with "distclean" because one of them,
44 # "mate_parser.c", needs different #includes for UN*X and Windows
45 # (UN*X versions of Flex make it include <unistd.h>, but that's a
46 # UN*X-only header), so if you're going to build from source, you need
47 # to build "mate_parser.c" from "mate_parser.l" with Flex.
48 # This might not be necessary for "mate_grammar.{c,h}", but we handle them
49 # the same for now.
50 #
51 distclean: clean
52         rm -f mate_parser.c mate_grammar.c mate_grammar.h mate_grammar.out
53
54 maintainer-clean: distclean
55
56 mate_parser.c : mate_parser.l
57         $(LEX) -Pdf_ -omate_parser.c mate_parser.l
58
59 mate_grammar.h : mate_grammar.c
60 mate_grammar.c : mate_grammar.lemon $(LEMON)\lemon.exe
61         $(LEMON)\lemon.exe t=$(LEMON)\lempar.c mate_grammar.lemon
62
63 $(LEMON)\lemon.exe:
64         cd ../../tools
65         $(MAKE) /$(MAKEFLAGS) -f makefile.nmake lemon
66         cd ../plugins/mate
67
68 checkapi:
69         $(PERL) ../../tools/checkAPIs.pl -g abort -g termoutput $(DISSECTOR_SRC) $(DISSECTOR_INCLUDES)