![Bill Meier](/assets/img/avatar_default.png)
- Define macros for certain CFLAGS in config.nmake iso of having defs in each makefile; a. -DHAVE_CONFIG_H and -D_U_="" are now part of a macro named STANDARD_CFLAGS; b. -WX has been replaced by WARNINGS_ARE_ERRORS (defined as -WX in config.nmake) (This allows disabling "Warnings as Errors" by just changing config.nmake) c. CVARSDLL definitions (not usage) have been removed from the various makefiles. XXX: It appears the usage of CVARSDLL can also be removed (not yet done) since: -DWIN32 and -DNULL=0 do not appear to be needed (any more); -D_MT and _D_DLL are not needed since /MP causes these definitions. d. Define a macro WARNINGS_CFLAGS with additional specific compiler (level4) warnings to be enabled. E.G., 4295: array is too small to include a terminating null character - config.nmake: reformat some long lines for readability; - plugins\Makefile.nmake: clean-deps does nothing: remove it (and usage in top-level makefile); - dissectors/Makefile.nmake: test to enable packet-rrc.obj target needs to include MSVC2010 ... svn path=/trunk/; revision=35747
92 lines
1.7 KiB
Makefile
92 lines
1.7 KiB
Makefile
#
|
|
# $Id$
|
|
#
|
|
|
|
include ..\..\config.nmake
|
|
|
|
############### no need to modify below this line #########
|
|
|
|
CFLAGS=$(WARNINGS_ARE_ERRORS) $(STANDARD_CFLAGS) \
|
|
/I. /I.. /I../.. $(GLIB_CFLAGS) \
|
|
$(LUA_CFLAGS) \
|
|
/I$(PCAP_DIR)\include
|
|
|
|
.c.obj::
|
|
$(CC) $(CVARSDLL) $(CFLAGS) -Fd.\ -c $<
|
|
|
|
MODULES = \
|
|
lua_bitop.c \
|
|
wslua_tvb.c \
|
|
wslua_proto.c \
|
|
wslua_tree.c \
|
|
wslua_pinfo.c \
|
|
wslua_listener.c \
|
|
wslua_gui.c \
|
|
wslua_util.c \
|
|
wslua_field.c \
|
|
wslua_dumper.c
|
|
|
|
OBJECTS= \
|
|
init_wslua.obj \
|
|
register_wslua.obj \
|
|
taps_wslua.obj \
|
|
lua_bitop.obj \
|
|
wslua_dumper.obj \
|
|
wslua_field.obj \
|
|
wslua_gui.obj \
|
|
wslua_pinfo.obj \
|
|
wslua_proto.obj \
|
|
wslua_listener.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 *.pdb init.lua taps_wslua.c declare_wslua.h register_wslua.c taps.txt
|
|
|
|
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 \
|
|
$(MODULES) \
|
|
init_wslua.c \
|
|
register_wslua.c \
|
|
taps_wslua.c
|