Add description of CT AS TIAS and H263-2000 profile.
[obnox/wireshark/wip.git] / plugins / h223 / Makefile.nmake
1 # Makefile.nmake
2 # nmake file for H.223 plugin
3 #
4 # $Id$
5 #
6
7 include ..\..\config.nmake
8
9 ############### no need to modify below this line #########
10
11 include Makefile.common
12
13 CFLAGS=/DHAVE_CONFIG_H /I../.. /I../../wiretap $(GLIB_CFLAGS) \
14         /I$(PCAP_DIR)\include -D_U_="" $(LOCAL_CFLAGS)
15
16 LDFLAGS = /NOLOGO /INCREMENTAL:no /MACHINE:I386 $(LOCAL_LDFLAGS)
17
18 !IFDEF ENABLE_LIBWIRESHARK
19 LINK_PLUGIN_WITH=..\..\epan\libwireshark.lib
20 CFLAGS=/DHAVE_WIN32_LIBWIRESHARK_LIB /D_NEED_VAR_IMPORT_ $(CFLAGS)
21
22 DISSECTOR_OBJECTS = $(DISSECTOR_SRC:.c=.obj)
23
24 DISSECTOR_SUPPORT_OBJECTS = $(DISSECTOR_SUPPORT_SRC:.c=.obj)
25
26 OBJECTS = $(DISSECTOR_OBJECTS) $(DISSECTOR_SUPPORT_OBJECTS) plugin.obj
27
28 $(PLUGIN_NAME).dll $(PLUGIN_NAME).exp $(PLUGIN_NAME).lib : $(OBJECTS) $(LINK_PLUGIN_WITH)
29         link -dll /out:$(PLUGIN_NAME).dll $(LDFLAGS) $(OBJECTS) \
30             $(LINK_PLUGIN_WITH) $(GLIB_LIBS)
31
32 #
33 # Build plugin.c, which contains the plugin version[] string, a
34 # function plugin_register() that calls the register routines for all
35 # protocols, and a function plugin_reg_handoff() that calls the handoff
36 # registration routines for all protocols.
37 #
38 # We do this by scanning sources.  If that turns out to be too slow,
39 # maybe we could just require every .o file to have an register routine
40 # of a given name (packet-aarp.o -> proto_register_aarp, etc.).
41 #
42 # Formatting conventions:  The name of the proto_register_* routines an
43 # proto_reg_handoff_* routines must start in column zero, or must be
44 # preceded only by "void " starting in column zero, and must not be
45 # inside #if.
46 #
47 # DISSECTOR_SRC is assumed to have all the files that need to be scanned.
48 #
49 # For some unknown reason, having a big "for" loop in the Makefile
50 # to scan all the files doesn't work with some "make"s; they seem to
51 # pass only the first few names in the list to the shell, for some
52 # reason.
53 #
54 # Therefore, we have a script to generate the plugin.c file.
55 # The shell script runs slowly, as multiple greps and seds are run
56 # for each input file; this is especially slow on Windows.  Therefore,
57 # if Python is present (as indicated by PYTHON being defined), we run
58 # a faster Python script to do that work instead.
59 #
60 # The first argument is the directory in which the source files live.
61 # The second argument is "plugin", to indicate that we should build
62 # a plugin.c file for a plugin.
63 # All subsequent arguments are the files to scan.
64 #
65 plugin.c: $(DISSECTOR_SRC)
66 !IFDEF PYTHON
67         @echo Making plugin.c (using python)
68         @$(PYTHON) "../../tools/make-dissector-reg.py" . plugin $(DISSECTOR_SRC)
69 !ELSE
70         @echo Making plugin.c (using sh)
71         @$(SH) ../../tools/make-dissector-reg . plugin $(DISSECTOR_SRC)
72 !ENDIF
73
74 !ENDIF
75
76 clean:
77         rm -f $(OBJECTS) $(PLUGIN_NAME).dll $(PLUGIN_NAME).exp \
78             $(PLUGIN_NAME).lib *.pdb
79
80 distclean: clean
81
82 maintainer-clean: distclean