aboutsummaryrefslogtreecommitdiffstats
path: root/epan/wmem/Makefile.nmake
blob: 2adc57b7c094d8013a525f8f35133681d8df5f2f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
## 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:
	set copycmd=/y
	if exist wmem_test.exe	xcopy wmem_test.exe	..\..\$(INSTALL_DIR) /d

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:
#