~ubuntu-branches/ubuntu/gutsy/wireshark/gutsy-security

« back to all changes in this revision

Viewing changes to plugins/v5ua/Makefile.nmake

  • Committer: Bazaar Package Importer
  • Author(s): Frederic Peters
  • Date: 2007-04-01 08:58:40 UTC
  • mfrom: (1.1.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20070401085840-or3qhrpv8alt1bwg
Tags: 0.99.5-1
* New upstream release.
* debian/patches/09_idl2wrs.dpatch: updated to patch idl2wrs.sh.in.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
# Makefile.nmake
2
 
# nmake file for V5UA plugin
 
2
# nmake file for Wireshark plugin
3
3
#
4
 
# $Id: Makefile.nmake 18260 2006-05-31 00:23:01Z gerald $
 
4
# $Id: Makefile.nmake 20291 2007-01-03 06:06:53Z ulfl $
5
5
#
6
6
 
7
7
include ..\..\config.nmake
8
 
 
9
 
############### no need to modify below this line #########
 
8
include moduleinfo.nmake
10
9
 
11
10
include Makefile.common
12
11
 
21
20
 
22
21
DISSECTOR_OBJECTS = $(DISSECTOR_SRC:.c=.obj)
23
22
 
24
 
OBJECTS=$(DISSECTOR_OBJECTS) plugin.obj
25
 
 
26
 
v5ua.dll v5ua.exp v5ua.lib : $(OBJECTS) $(LINK_PLUGIN_WITH) 
27
 
        link -dll /out:v5ua.dll $(LDFLAGS) $(OBJECTS) $(LINK_PLUGIN_WITH)  \
28
 
        $(GLIB_LIBS)
29
 
 
 
23
DISSECTOR_SUPPORT_OBJECTS = $(DISSECTOR_SUPPORT_SRC:.c=.obj)
 
24
 
 
25
OBJECTS = $(DISSECTOR_OBJECTS) $(DISSECTOR_SUPPORT_OBJECTS) plugin.obj
 
26
 
 
27
RESOURCE=$(PLUGIN_NAME).res
 
28
 
 
29
all: $(PLUGIN_NAME).dll
 
30
 
 
31
$(PLUGIN_NAME).rc : moduleinfo.nmake
 
32
        sed -e s/@PLUGIN_NAME@/$(PLUGIN_NAME)/ \
 
33
        -e s/@RC_MODULE_VERSION@/$(RC_MODULE_VERSION)/ \
 
34
        -e s/@RC_VERSION@/$(RC_VERSION)/ \
 
35
        -e s/@MODULE_VERSION@/$(MODULE_VERSION)/ \
 
36
        -e s/@PACKAGE@/$(PACKAGE)/ \
 
37
        -e s/@VERSION@/$(VERSION)/ \
 
38
        < plugin.rc.in > $@
 
39
 
 
40
$(PLUGIN_NAME).dll $(PLUGIN_NAME).exp $(PLUGIN_NAME).lib : $(OBJECTS) $(LINK_PLUGIN_WITH) $(RESOURCE)
 
41
        link -dll /out:$(PLUGIN_NAME).dll $(LDFLAGS) $(OBJECTS) $(LINK_PLUGIN_WITH) \
 
42
        $(GLIB_LIBS) $(RESOURCE)
30
43
#
31
44
# Build plugin.c, which contains the plugin version[] string, a
32
45
# function plugin_register() that calls the register routines for all
63
76
plugin.c: $(DISSECTOR_SRC)
64
77
!IFDEF PYTHON
65
78
        @echo Making plugin.c (using python)
66
 
        @$(PYTHON) ../../tools/make-dissector-reg.py . plugin $(DISSECTOR_SRC)
 
79
        @$(PYTHON) "../../tools/make-dissector-reg.py" . plugin $(DISSECTOR_SRC)
67
80
!ELSE
68
81
        @echo Making plugin.c (using sh)
69
82
        @$(SH) ../../tools/make-dissector-reg . plugin $(DISSECTOR_SRC)
72
85
!ENDIF
73
86
 
74
87
clean:
75
 
        rm -f $(OBJECTS) v5ua.dll v5ua.exp v5ua.lib *.pdb
 
88
        rm -f $(OBJECTS) $(RESOURCE) plugin.c *.pdb \
 
89
                $(PLUGIN_NAME).dll $(PLUGIN_NAME).dll.manifest $(PLUGIN_NAME).lib \
 
90
        $(PLUGIN_NAME).exp $(PLUGIN_NAME).rc 
76
91
 
77
92
distclean: clean
78
93