2006-09-25 01:09:00 +00:00
|
|
|
#
|
|
|
|
|
|
|
|
include ..\..\config.nmake
|
|
|
|
|
2007-08-02 16:06:13 +00:00
|
|
|
############### no need to modify below this line #########
|
2006-09-25 01:09:00 +00:00
|
|
|
|
2011-02-02 01:19:53 +00:00
|
|
|
CFLAGS=$(WARNINGS_ARE_ERRORS) $(STANDARD_CFLAGS) \
|
|
|
|
/I. /I.. /I../.. $(GLIB_CFLAGS) \
|
2013-03-01 23:53:11 +00:00
|
|
|
$(LUA_CFLAGS) -DWS_BUILD_DLL\
|
2011-02-02 01:19:53 +00:00
|
|
|
/I$(PCAP_DIR)\include
|
2006-09-25 01:09:00 +00:00
|
|
|
|
2006-09-26 03:31:00 +00:00
|
|
|
.c.obj::
|
2013-06-25 15:32:49 +00:00
|
|
|
$(CC) $(CFLAGS) -Fd.\ -c $<
|
2006-09-25 01:09:00 +00:00
|
|
|
|
2007-08-02 16:06:13 +00:00
|
|
|
MODULES = \
|
2014-02-22 05:44:00 +00:00
|
|
|
lrexlib.c \
|
|
|
|
lrexlib_glib.c \
|
|
|
|
lrexlib_glib_f.c \
|
2015-07-07 15:30:44 +00:00
|
|
|
lua_bitop.c \
|
|
|
|
wslua_address.c \
|
|
|
|
wslua_byte_array.c \
|
|
|
|
wslua_capture_info.c \
|
|
|
|
wslua_column.c \
|
2014-03-26 06:24:51 +00:00
|
|
|
wslua_dir.c \
|
2015-07-07 15:30:44 +00:00
|
|
|
wslua_dissector.c \
|
|
|
|
wslua_dumper.c \
|
2007-08-02 16:06:13 +00:00
|
|
|
wslua_field.c \
|
2014-03-18 17:21:51 +00:00
|
|
|
wslua_file.c \
|
2015-07-07 15:30:44 +00:00
|
|
|
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 \
|
2014-02-03 03:49:30 +00:00
|
|
|
wslua_struct.c \
|
2015-07-07 15:30:44 +00:00
|
|
|
wslua_tree.c \
|
|
|
|
wslua_tvb.c \
|
|
|
|
wslua_util.c
|
2007-08-02 16:06:13 +00:00
|
|
|
|
2006-09-25 01:09:00 +00:00
|
|
|
OBJECTS= \
|
2006-09-26 03:31:00 +00:00
|
|
|
init_wslua.obj \
|
2006-10-03 18:24:08 +00:00
|
|
|
register_wslua.obj \
|
2006-10-17 18:20:44 +00:00
|
|
|
taps_wslua.obj \
|
2014-02-22 05:44:00 +00:00
|
|
|
lrexlib.obj \
|
|
|
|
lrexlib_glib.obj \
|
|
|
|
lrexlib_glib_f.obj \
|
2015-07-07 15:30:44 +00:00
|
|
|
lua_bitop.obj \
|
|
|
|
wslua_address.obj \
|
|
|
|
wslua_byte_array.obj \
|
|
|
|
wslua_capture_info.obj \
|
|
|
|
wslua_column.obj \
|
2014-03-26 06:24:51 +00:00
|
|
|
wslua_dir.obj \
|
2015-07-07 15:30:44 +00:00
|
|
|
wslua_dissector.obj \
|
|
|
|
wslua_dumper.obj \
|
2014-02-21 07:33:13 +00:00
|
|
|
wslua_field.obj \
|
2014-03-18 17:21:51 +00:00
|
|
|
wslua_file.obj \
|
2015-07-07 15:30:44 +00:00
|
|
|
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 \
|
2014-02-21 07:33:13 +00:00
|
|
|
wslua_struct.obj \
|
2015-07-07 15:30:44 +00:00
|
|
|
wslua_tree.obj \
|
|
|
|
wslua_tvb.obj \
|
|
|
|
wslua_util.obj
|
2006-09-26 03:31:00 +00:00
|
|
|
|
|
|
|
wslua.lib : $(OBJECTS) init.lua
|
|
|
|
link /lib /NODEFAULTLIB /out:wslua.lib $(OBJECTS)
|
2006-09-25 01:09:00 +00:00
|
|
|
|
2006-09-26 03:31:00 +00:00
|
|
|
clean:
|
2015-01-02 01:41:49 +00:00
|
|
|
rm -f $(OBJECTS) wslua.lib init.lua taps_wslua.c declare_wslua.h register_wslua.c taps.txt \
|
|
|
|
*.nativecodeanalysis.xml *.pdb *.sbr
|
2006-09-25 01:09:00 +00:00
|
|
|
|
2006-10-03 18:24:08 +00:00
|
|
|
init_wslua.c: declare_wslua.h
|
2006-09-25 01:09:00 +00:00
|
|
|
|
2006-09-26 03:31:00 +00:00
|
|
|
distclean: clean
|
2006-09-25 01:09:00 +00:00
|
|
|
|
2006-09-26 03:31:00 +00:00
|
|
|
maintainer-clean: distclean
|
2006-09-25 01:09:00 +00:00
|
|
|
|
2006-09-26 03:31:00 +00:00
|
|
|
TAPS_USED = \
|
|
|
|
../dissectors/packet-http.h \
|
|
|
|
../dissectors/packet-ip.h \
|
|
|
|
../dissectors/packet-udp.h \
|
|
|
|
../dissectors/packet-h225.h
|
2006-09-25 01:09:00 +00:00
|
|
|
|
2006-09-26 03:31:00 +00:00
|
|
|
taps: $(TAPS_USED)
|
|
|
|
touch taps
|
2006-09-25 01:09:00 +00:00
|
|
|
|
2006-10-17 18:20:44 +00:00
|
|
|
taps_wslua.c: make-taps.pl taps
|
2014-08-01 20:14:23 +00:00
|
|
|
$(PERL) make-taps.pl taps taps_wslua.c taps.txt .
|
2006-09-25 01:09:00 +00:00
|
|
|
|
2006-10-17 18:20:44 +00:00
|
|
|
taps.txt: taps_wslua.c
|
2006-10-03 18:24:08 +00:00
|
|
|
|
|
|
|
register_wslua.c: declare_wslua.h
|
2010-05-28 13:09:12 +00:00
|
|
|
|
2006-10-03 18:24:08 +00:00
|
|
|
wslua.h: declare_wslua.h
|
2006-09-26 03:31:00 +00:00
|
|
|
|
2010-05-28 13:09:12 +00:00
|
|
|
declare_wslua.h: make-reg.pl $(MODULES)
|
2006-10-03 18:24:08 +00:00
|
|
|
$(PERL) make-reg.pl $(MODULES)
|
2006-09-26 03:31:00 +00:00
|
|
|
|
|
|
|
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
|
2010-05-28 13:09:12 +00:00
|
|
|
$(PERL) make-init-lua.pl "../.." template-init.lua > init.lua
|
2006-09-25 01:09:00 +00:00
|
|
|
|
2008-06-03 05:35:19 +00:00
|
|
|
checkapi:
|
2012-04-04 20:46:49 +00:00
|
|
|
$(PERL) ../../tools/checkAPIs.pl -g termoutput -build \
|
2008-06-03 05:35:19 +00:00
|
|
|
$(MODULES) \
|
|
|
|
init_wslua.c \
|
|
|
|
register_wslua.c \
|
2008-07-02 01:44:30 +00:00
|
|
|
taps_wslua.c
|