1 ## Makefile for building wmem.lib with Microsoft C and nmake
2 ## Use: $(MAKE) /$(MAKEFLAGS) -f makefile.nmake
6 include ..\..\config.nmake
7 include Makefile.common
9 ############### no need to modify below this line #########
11 CFLAGS=$(WARNINGS_ARE_ERRORS) $(STANDARD_CFLAGS) \
12 /I../.. $(GLIB_CFLAGS) -DWS_BUILD_DLL
15 $(CC) $(CFLAGS) -Fd.\ -c $<
17 WMEM_OBJECTS = $(LIBWMEM_SRC:.c=.obj)
19 wmem.lib: $(WMEM_OBJECTS)
20 link /lib /out:wmem.lib $(WMEM_OBJECTS)
23 rm -f $(WMEM_OBJECTS) wmem.lib *.pdb *.sbr wmem_test.obj wmem_test.exe wmem_test.exp
27 maintainer-clean: distclean
29 # Rule for making unit tests
30 wmem_test: wmem_test.exe
32 # Object files for wmem_test
33 WMEM_TEST_OBJ=wmem_test.obj
34 WMEM_TEST_LIBS= wmem.lib
36 wmem_test.exe: $(WMEM_TEST_OBJ) $(WMEM_TEST_LIBS)
38 link /OUT:$@ $(conflags) $(conlibsdll) $(LOCAL_LDFLAGS) /LARGEADDRESSAWARE /SUBSYSTEM:console \
39 $(WMEM_TEST_LIBS) $(GLIB_LIBS) $(WMEM_TEST_OBJ)
43 if exist wmem_test.exe xcopy wmem_test.exe ..\..\$(INSTALL_DIR) /d
46 $(PERL) ../../tools/checkAPIs.pl -g termoutput -build \
50 # Editor modelines - http://www.wireshark.org/tools/modelines.html
58 # vi: set shiftwidth=8 tabstop=8 noexpandtab:
59 # :indentSize=8:tabSize=8:noTabs=false: