More constification.
[obnox/wireshark/wip.git] / gtk / 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
8 ############### no need to modify below this line #########
9
10 CFLAGS=-DHAVE_CONFIG_H /I.. /I../wiretap $(GTK_CFLAGS) \
11         /I$(PCAP_DIR)\WPCAP\LIBPCAP /I$(PCAP_DIR)\WPCAP\LIBPCAP\bpf \
12         /I$(PCAP_DIR)\WPCAP\LIBPCAP\lbl \
13         /I$(PCAP_DIR)\include /I$(NET_SNMP_DIR)\include \
14         /I$(NET_SNMP_DIR)\win32 /Zm800 -D_U_="" -D_NEED_VAR_IMPORT_ $(LOCAL_CFLAGS)
15
16 CVARSDLL=-DWIN32 -DNULL=0 -D_MT -D_DLL
17
18 !IFDEF ETHEREAL_EUG_DIR
19 EUG_CFLAGS=-DETHEREAL_EUG_DIR
20 !ENDIF
21
22 .c.obj::
23         $(CC) $(CVARSDLL) $(CFLAGS) $(EUG_CFLAGS) -Fd.\ -c $<
24
25 include Makefile.common
26
27
28 # if you add files here, be sure to include them also in Makefile.am EXTRA_DIST
29 ETHEREAL_WIN32_GTK_SRC = \
30         $(ETHEREAL_GTK_SRC) \
31         print_mswin.c
32
33
34 ETHEREAL_TAP_OBJECTS = $(ETHEREAL_TAP_SRC:.c=.obj)
35
36
37 ETHEREAL_WIN32_GTK_OBJECTS = $(ETHEREAL_WIN32_GTK_SRC:.c=.obj)
38         
39
40 libui.lib       : ..\config.h $(ETHEREAL_WIN32_GTK_OBJECTS) $(ETHEREAL_TAP_OBJECTS)
41         link /lib /out:libui.lib $(ETHEREAL_WIN32_GTK_OBJECTS) $(ETHEREAL_TAP_OBJECTS)
42
43 ethereal-tap-register.c: $(ETHEREAL_TAP_SRC) ../make-tapreg-dotc Makefile.common
44         @echo Making ethereal-tap-register.c
45         @$(SH) ../make-tapreg-dotc ethereal-tap-register.c . $(ETHEREAL_TAP_SRC)
46
47
48 clean:
49         rm -f $(ETHEREAL_WIN32_GTK_OBJECTS) $(ETHEREAL_TAP_OBJECTS) libui.lib $(PDB_FILE) doxygen.cfg html/*.*
50         if exist html rmdir html
51
52 distclean: clean
53
54 maintainer-clean: distclean
55         rm -f $(GENERATED_FILES)
56
57 # convert doxygen.cfg.in to doxygen.cfg with stamped version info
58 doxygen.cfg: ..\config.nmake doxygen.cfg.in
59 !IFDEF DOXYGEN
60         sed -e s/@VERSION@/$(VERSION)/ \
61             < doxygen.cfg.in > $@
62 !ENDIF
63
64 doxygen-run:
65 !IFDEF DOXYGEN
66         $(DOXYGEN) doxygen.cfg
67 !ENDIF
68
69 # MS html help conpiler hhc returns 1 on success, but as nmake expects 0 it would stop here.
70 # the prepended -1 will raise the accepted error levels of nmake, so it will continue
71 doxygen.chm:
72 !IFDEF HHC
73         -1 $(HHC) html\index.hhp
74 !ENDIF
75
76 doxygen: doxygen.cfg doxygen-run doxygen.chm
77