2012-10-24 02:04:40 +00:00
|
|
|
## 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) \
|
2013-03-01 23:53:11 +00:00
|
|
|
/I../.. $(GLIB_CFLAGS) -DWS_BUILD_DLL
|
2012-10-24 02:04:40 +00:00
|
|
|
|
|
|
|
.c.obj::
|
|
|
|
$(CC) $(CFLAGS) -Fd.\ -c $<
|
|
|
|
|
|
|
|
WMEM_OBJECTS = $(LIBWMEM_SRC:.c=.obj)
|
|
|
|
|
|
|
|
wmem.lib: $(WMEM_OBJECTS)
|
|
|
|
link /lib /out:wmem.lib $(WMEM_OBJECTS)
|
|
|
|
|
|
|
|
clean:
|
2015-01-02 01:41:49 +00:00
|
|
|
rm -f $(WMEM_OBJECTS) wmem.lib *.nativecodeanalysis.xml *.pdb *.sbr wmem_test.obj wmem_test.exe wmem_test.exp
|
2012-10-24 02:04:40 +00:00
|
|
|
|
|
|
|
distclean: clean
|
|
|
|
|
|
|
|
maintainer-clean: distclean
|
|
|
|
|
2013-03-23 23:51:07 +00:00
|
|
|
# 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 \
|
2013-06-25 15:32:49 +00:00
|
|
|
$(WMEM_TEST_LIBS) $(GLIB_LIBS) $(WMEM_TEST_OBJ)
|
2013-03-23 23:51:07 +00:00
|
|
|
|
|
|
|
wmem_test_install:
|
|
|
|
set copycmd=/y
|
2014-05-28 16:04:30 +00:00
|
|
|
if exist wmem_test.exe xcopy wmem_test.exe ..\..\$(INSTALL_DIR) /d
|
2013-03-23 23:51:07 +00:00
|
|
|
|
2012-10-24 02:04:40 +00:00
|
|
|
checkapi:
|
|
|
|
$(PERL) ../../tools/checkAPIs.pl -g termoutput -build \
|
|
|
|
$(WMEM_SRC)
|
|
|
|
|
|
|
|
#
|
2014-09-16 20:12:10 +00:00
|
|
|
# Editor modelines - https://www.wireshark.org/tools/modelines.html
|
2012-10-24 02:04:40 +00:00
|
|
|
#
|
|
|
|
# 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:
|
|
|
|
#
|