Add support for decoding DES3/CBC/MD5 keys. Make it disabled by default.
[obnox/wireshark/wip.git] / epan / Makefile.nmake
1 ## Makefile for building ethereal.exe with Microsoft C and nmake
2 ## Use: $(MAKE) /$(MAKEFLAGS) -f makefile.nmake
3 #
4 # $Id$
5
6 include ..\config.nmake
7 include <win32.mak>
8 include Makefile.common
9
10
11 ############### no need to modify below this line #########
12
13 CFLAGS=-DHAVE_CONFIG_H /I. /I.. /I../wiretap $(GLIB_CFLAGS) \
14         $(ZLIB_CFLAGS) $(ADNS_CFLAGS) $(PCRE_CFLAGS) /I$(PCAP_DIR)\include \
15         -D_U_="" $(LOCAL_CFLAGS)
16
17 CVARSDLL=-DWIN32 -DNULL=0 -D_MT -D_DLL
18
19 # For use when making libethereal.dll
20 libethereal_LIBS = \
21         $(GLIB_LIBS)    \
22         $(ADNS_LIBS) \
23         $(PCRE_LIBS) \
24         $(NETTLE_LIBS) \
25         $(ZLIB_LIBS) \
26         $(NET_SNMP_DIR)\win32\lib\netsnmp.lib \
27         ftypes\ftypes.lib \
28         dfilter\dfilter.lib \
29         dissectors\dissectors.lib
30
31 # declare before .c.obj::
32 DISSECTOR_SUPPORT_OBJECTS = $(DISSECTOR_SUPPORT_SRC:.c=.obj)
33
34 .c.obj::
35         $(CC) $(CVARSDLL) $(CFLAGS) -Fd.\ -c $<
36
37 LIBETHEREAL_OBJECTS = $(LIBETHEREAL_SRC:.c=.obj)
38
39 EXTRA_OBJECTS = \
40 #       snprintf.obj    \
41 #       strerror.obj    \
42         inet_aton.obj   \
43         inet_pton.obj   \
44         inet_ntop.obj   \
45         ../mkstemp.obj  \
46         ../strptime.obj
47
48 #EXTRA_SRC = $(EXTRA_SRC:../=)
49 #EXTRA_OBJECTS = $(EXTRA_SRC:.c=.obj)
50
51
52 !IFDEF ENABLE_LIBETHEREAL
53 all: ftypes dfilter dissectors libethereal.dll
54 !ELSE
55 all: ftypes dfilter dissectors ethereal.lib
56 !ENDIF
57
58 # For use when making libethereal.dll
59 libethereal.lib: libethereal.dll
60 libethereal.exp: libethereal.dll
61
62 #DISSECTOR_SUPPORT_SRC = $(DISSECTOR_SUPPORT_SRC:../=)
63 #DISSECTOR_SUPPORT_OBJECTS = $(DISSECTOR_SUPPORT_SRC:.c=.obj)
64 #DISSECTOR_SUPPORT_OBJECTS = $(DISSECTOR_SUPPORT_OBJECTS:../=)
65
66 libethereal.dll: ..\config.h $(LIBETHEREAL_OBJECTS) libethereal.def ftypes dfilter dissectors $(DISSECTOR_SUPPORT_OBJECTS) doxygen $(EXTRA_OBJECTS) ..\image\libethereal.res
67         @echo Linking libethereal.dll
68         $(link) $(dlllflags) $(conlibsdll) \
69                 $(LOCAL_LDFLAGS) \
70                 /DEF:libethereal.def /OUT:libethereal.dll \
71                 /IMPLIB:libethereal.lib $(LIBETHEREAL_OBJECTS) \
72                 $(libethereal_LIBS) ..\image\libethereal.res \
73                 dissectors\register.obj $(DISSECTOR_SUPPORT_OBJECTS) \
74                 $(EXTRA_OBJECTS)
75
76 ethereal.lib    : ..\config.h $(LIBETHEREAL_OBJECTS) $(EXTRA_OBJECTS) 
77         link /lib /out:ethereal.lib $(LIBETHEREAL_OBJECTS) \
78                 $(EXTRA_OBJECTS) $(DISSECTOR_SUPPORT_OBJECTS)
79
80 ..\config.h     : ..\config.h.win32 ..\config.nmake
81         cd ..
82         $(MAKE) -f Makefile.nmake config.h
83         cd epan
84
85 clean:
86         rm -f $(LIBETHEREAL_OBJECTS) $(DISSECTOR_SUPPORT_OBJECTS) $(EXTRA_OBJECTS) ethereal.lib libethereal.dll libethereal.lib libethereal.exp $(PDB_FILE) doxygen.cfg html/*.*
87         if exist html rmdir html        
88         cd ftypes
89         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake clean
90         cd ../dfilter
91         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake clean
92         cd ../dissectors
93         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake clean
94         cd ..
95
96 distclean: clean
97         rm -f config.h register.c
98         cd ftypes
99         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake distclean
100         cd ../dfilter
101         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake distclean
102         cd ../dissectors
103         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake distclean
104         cd ..
105
106 ftypes:: ..\config.h
107         cd ftypes
108         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake
109         cd ..
110
111 dfilter:: ..\config.h
112         cd dfilter
113         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake
114         cd ..
115
116 dissectors:: ..\config.h
117         cd dissectors
118         $(MAKE) /$(MAKEFLAGS) -f Makefile.nmake
119         cd ..
120
121 doxygen.cfg: ..\config.nmake doxygen.cfg.in
122         sed -e s/@VERSION@/$(VERSION)/ \
123             < doxygen.cfg.in > $@
124
125 doxygen-run:
126 !IFDEF DOXYGEN
127         $(DOXYGEN) doxygen.cfg
128 !ENDIF
129
130 doxygen: doxygen.cfg doxygen-run
131