wireshark/epan/wmem/Makefile.nmake
Gerald Combs f074647d2b Add a test-programs target everywhere.
Add a "test-programs" target to each toolchain which builds each unit
test executable. "test-programs" must now be built before running
the unit test suite.

Change-Id: I9317a1e305d987f244c4bd8b4a7f05d11fed7090
Reviewed-on: https://code.wireshark.org/review/7673
Petri-Dish: Gerald Combs <gerald@wireshark.org>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Gerald Combs <gerald@wireshark.org>
2015-03-13 22:41:40 +00:00

62 lines
1.4 KiB
Makefile

## Makefile for building wmem.lib with Microsoft C and nmake
## Use: $(MAKE) /$(MAKEFLAGS) -f makefile.nmake
#
include ..\..\config.nmake
include Makefile.common
############### no need to modify below this line #########
CFLAGS=$(WARNINGS_ARE_ERRORS) $(STANDARD_CFLAGS) \
/I../.. $(GLIB_CFLAGS) -DWS_BUILD_DLL
.c.obj::
$(CC) $(CFLAGS) -Fd.\ -c $<
WMEM_OBJECTS = $(LIBWMEM_SRC:.c=.obj)
wmem.lib: $(WMEM_OBJECTS)
link /lib /out:wmem.lib $(WMEM_OBJECTS)
clean:
rm -f $(WMEM_OBJECTS) wmem.lib *.nativecodeanalysis.xml *.pdb *.sbr wmem_test.obj wmem_test.exe wmem_test.exp
distclean: clean
maintainer-clean: distclean
# Rule for making unit tests
wmem_test: wmem_test.exe
# Object files for wmem_test
WMEM_TEST_OBJ=wmem_test.obj
WMEM_TEST_LIBS= wmem.lib
wmem_test.exe: $(WMEM_TEST_OBJ) $(WMEM_TEST_LIBS)
@echo Linking $@
link /OUT:$@ $(conflags) $(conlibsdll) $(LOCAL_LDFLAGS) /LARGEADDRESSAWARE /SUBSYSTEM:console \
$(WMEM_TEST_LIBS) $(GLIB_LIBS) $(WMEM_TEST_OBJ)
wmem_test_install: wmem_test.exe
set copycmd=/y
xcopy wmem_test.exe ..\..\$(INSTALL_DIR) /d
test-programs: wmem_test_install
checkapi:
$(PERL) ../../tools/checkAPIs.pl -g termoutput -build \
$(WMEM_SRC)
#
# Editor modelines - https://www.wireshark.org/tools/modelines.html
#
# Local variables:
# c-basic-offset: 8
# tab-width: 8
# indent-tabs-mode: t
# End:
#
# vi: set shiftwidth=8 tabstop=8 noexpandtab:
# :indentSize=8:tabSize=8:noTabs=false:
#