aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/xml/Makefile.nmake
blob: 9d910c590992b2a762a8a51af7fb5a02e2e8e1a3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
#
# $Id$
#

include ..\..\config.nmake
include <win32.mak>

############### no need to modify below this line #########

CFLAGS=/DHAVE_CONFIG_H /I../.. /I../../wiretap $(GLIB_CFLAGS) \
	/I$(PCAP_DIR)\include -D_U_="" $(LOCAL_CFLAGS)
	
.c.obj::
	$(CC) $(CFLAGS) -Fdxml.pdb -c $<
	
LDFLAGS = /NOLOGO /INCREMENTAL:no /MACHINE:I386 $(LOCAL_LDFLAGS)

!IFDEF ENABLE_LIBETHEREAL
LINK_PLUGIN_WITH=..\..\epan\libethereal.lib
CFLAGS=/DHAVE_WIN32_LIBETHEREAL_LIB /D_NEED_VAR_IMPORT_ $(CFLAGS)

OBJECTS=packet-xml.obj xml_lexer.obj xml_plugin.obj

xml.dll xml.exp xml.lib : $(OBJECTS) $(LINK_PLUGIN_WITH)
	link -dll /out:xml.dll $(LDFLAGS) $(OBJECTS) $(LINK_PLUGIN_WITH) \
	$(GLIB_LIBS)

!ENDIF

xml_lexer.c : xml_lexer.l
	$(LEX) -oxml_lexer.c xml_lexer.l

clean:
	rm -f $(OBJECTS) xml.dll xml.exp xml.lib *.pdb

#
# We remove the generated files with "distclean" because one of them,
# "xml_lexer.c", needs different #includes for UN*X and Windows
# (UN*X versions of Flex make it include <unistd.h>, but that's a
# UN*X-only header), so if you're going to build from source, you need
# to build "xml_lexer.c" from "xml_lexer.l" with Flex.
#
distclean: clean
	rm -f xml_lexer.c

maintainer-clean: distclean