aboutsummaryrefslogtreecommitdiffstats
path: root/epan/wslua/Makefile.nmake
blob: 9ad3ac5c886858f5dd31cd9b6f080e74d05aa01a (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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
#

include ..\..\config.nmake

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

CFLAGS=$(WARNINGS_ARE_ERRORS) $(STANDARD_CFLAGS) \
	/I. /I.. /I../.. $(GLIB_CFLAGS) \
	$(LUA_CFLAGS) -DWS_BUILD_DLL\
	/I$(PCAP_DIR)\include

.c.obj::
	$(CC) $(CFLAGS) -Fd.\ -c $<

MODULES = 	\
	lrexlib.c \
	lrexlib_glib.c \
	lrexlib_glib_f.c \
	lua_bitop.c \
	wslua_address.c \
	wslua_byte_array.c \
	wslua_capture_info.c \
	wslua_column.c \
	wslua_dir.c \
	wslua_dissector.c \
	wslua_dumper.c \
	wslua_field.c \
	wslua_file.c \
	wslua_file_common.c \
	wslua_file_handler.c \
	wslua_frame_info.c \
	wslua_gui.c \
	wslua_int64.c \
	wslua_internals.c \
	wslua_listener.c \
	wslua_nstime.c \
	wslua_pinfo.c \
	wslua_pref.c \
	wslua_proto.c \
	wslua_proto_expert.c \
	wslua_proto_field.c \
	wslua_struct.c \
	wslua_tree.c \
	wslua_tvb.c \
	wslua_util.c

OBJECTS= \
	init_wslua.obj \
	register_wslua.obj \
	taps_wslua.obj \
	lrexlib.obj \
	lrexlib_glib.obj \
	lrexlib_glib_f.obj \
	lua_bitop.obj \
	wslua_address.obj \
	wslua_byte_array.obj \
	wslua_capture_info.obj \
	wslua_column.obj \
	wslua_dir.obj \
	wslua_dissector.obj \
	wslua_dumper.obj \
	wslua_field.obj \
	wslua_file.obj \
	wslua_file_common.obj \
	wslua_file_handler.obj \
	wslua_frame_info.obj \
	wslua_gui.obj \
	wslua_int64.obj \
	wslua_internals.obj \
	wslua_listener.obj \
	wslua_nstime.obj \
	wslua_pinfo.obj \
	wslua_pref.obj \
	wslua_proto.obj \
	wslua_proto_expert.obj \
	wslua_proto_field.obj \
	wslua_struct.obj \
	wslua_tree.obj \
	wslua_tvb.obj \
	wslua_util.obj

wslua.lib	: $(OBJECTS) init.lua
	link /lib /NODEFAULTLIB /out:wslua.lib $(OBJECTS)

clean:
	rm -f $(OBJECTS) wslua.lib  init.lua taps_wslua.c declare_wslua.h register_wslua.c taps.txt \
	*.nativecodeanalysis.xml *.pdb *.sbr

init_wslua.c: declare_wslua.h

distclean: clean

maintainer-clean: distclean

TAPS_USED = \
	../dissectors/packet-http.h \
	../dissectors/packet-ip.h \
	../dissectors/packet-udp.h \
	../dissectors/packet-h225.h

taps: $(TAPS_USED)
	touch taps

taps_wslua.c: make-taps.pl taps
	$(PERL) make-taps.pl taps taps_wslua.c taps.txt .

taps.txt: taps_wslua.c

register_wslua.c: declare_wslua.h

wslua.h: declare_wslua.h

declare_wslua.h: make-reg.pl $(MODULES)
	$(PERL) make-reg.pl $(MODULES)

doc: $(MODULES)
	$(PERL) make-doc.pl $(MODULES)

dummy:
	touch dummy

init.lua: template-init.lua make-init-lua.pl ../ftypes/ftypes.h ../../wiretap/wtap.h  ../proto.h
	$(PERL) make-init-lua.pl "../.." template-init.lua > init.lua

checkapi:
	$(PERL) ../../tools/checkAPIs.pl -g termoutput -build \
	$(MODULES)	\
	init_wslua.c \
	register_wslua.c \
	taps_wslua.c