doxygen changes:
[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: Makefile.nmake,v 1.77 2004/06/25 07:10:54 jmayer Exp $
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 .c.obj::
19    $(CC) $(CVARSDLL) $(CFLAGS) -Fd.\ -c $<
20
21 include Makefile.common
22
23
24 # if you add files here, be sure to include them also in Makefile.am EXTRA_DIST
25 ETHEREAL_WIN32_GTK_SRC = \
26         $(ETHEREAL_GTK_SRC) \
27         print_mswin.c
28
29
30 ETHEREAL_TAP_OBJECTS = $(ETHEREAL_TAP_SRC:.c=.obj)
31
32
33 ETHEREAL_WIN32_GTK_OBJECTS = $(ETHEREAL_WIN32_GTK_SRC:.c=.obj)
34         
35
36 libui.lib       : ..\config.h $(ETHEREAL_WIN32_GTK_OBJECTS) $(ETHEREAL_TAP_OBJECTS)
37         lib /out:libui.lib $(ETHEREAL_WIN32_GTK_OBJECTS) $(ETHEREAL_TAP_OBJECTS)
38
39 ethereal-tap-register.c: $(ETHEREAL_TAP_SRC) ../make-tapreg-dotc Makefile.common
40         @echo Making ethereal-tap-register.c
41         @$(SH) ../make-tapreg-dotc ethereal-tap-register.c . $(ETHEREAL_TAP_SRC)
42
43
44 clean:
45         rm -f $(ETHEREAL_WIN32_GTK_OBJECTS) $(ETHEREAL_TAP_OBJECTS) libui.lib $(PDB_FILE) doxygen.cfg
46
47 distclean: clean
48         rm -f ethereal-tap-register.c
49
50 # convert doxygen.cfg.in to doxygen.cfg with stamped version info
51 doxygen.cfg: ..\config.nmake doxygen.cfg.in
52 !IFDEF DOXYGEN
53         sed -e s/@VERSION@/$(VERSION)/ \
54             < doxygen.cfg.in > $@
55 !ENDIF
56
57 doxygen-run:
58 !IFDEF DOXYGEN
59         $(DOXYGEN) doxygen.cfg
60 !ENDIF
61
62 # MS html help conpiler hhc returns 1 on success, but as nmake expects 0 it would stop here.
63 # the prepended -1 will raise the accepted error levels of nmake, so it will continue
64 doxygen.chm:
65 !IFDEF HHC
66         -1 $(HHC) html\index.hhp
67 !ENDIF
68
69 doxygen: doxygen.cfg doxygen-run doxygen.chm
70