forked from hauke/wireshark
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile.nmake
82 lines (63 loc) · 2.29 KB
/
Makefile.nmake
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
#
include ..\config.nmake
include <win32.mak>
include ..\Makefile.nmake.inc
include Makefile.common
# We use GENERATED_CFLAGS to get around flex's non-LLP64-compliant output
GENERATED_CFLAGS=\
$(STANDARD_CFLAGS) \
-DYYMALLOC=malloc -DYYFREE=free \
/I. /I.. $(GLIB_CFLAGS) \
$(ZLIB_CFLAGS) /I$(PCAP_DIR)/include \
-DWS_BUILD_DLL
CFLAGS=$(WARNINGS_ARE_ERRORS) $(GENERATED_CFLAGS)
.c.obj::
$(CC) $(CFLAGS) -Fd.\ -c $<
OBJECTS=$(NONGENERATED_C_FILES:.c=.obj) $(GENERATED_C_FILES:.c=.obj)
wiretap_LIBS = \
$(GLIB_LIBS) \
..\wsutil\libwsutil.lib \
$(ZLIB_LIBS)
all: wiretap-$(WTAP_VERSION).dll
wiretap-$(WTAP_VERSION).lib: wiretap-$(WTAP_VERSION).dll
wiretap-$(WTAP_VERSION).exp: wiretap-$(WTAP_VERSION).dll
wiretap-$(WTAP_VERSION).dll : $(OBJECTS) ..\image\wiretap.res
$(link) $(dlllflags) $(conlibsdll) \
$(LOCAL_LDFLAGS) $(DLL_LDFLAGS) \
/OUT:wiretap-$(WTAP_VERSION).dll \
/IMPLIB:wiretap-$(WTAP_VERSION).lib \
..\image\wiretap.res \
$(OBJECTS) $(wiretap_LIBS)
RUNLEX = ../tools/runlex.sh
k12text_lex.h : k12text.c
k12text.obj : k12text.c
$(CC) $(GENERATED_CFLAGS) -Fd.\ -c $?
ascend_scanner_lex.h : ascend_scanner.c
ascend_scanner.obj : ascend_scanner.c ascend.h
$(CC) $(GENERATED_CFLAGS) -Fd.\ -c ascend_scanner.c
ascend_scanner.c : ascend.h
ascend.c ascend.h : ascend.y
$(YACC) $(YACC_OPTS) -d -p ascend ascend.y -o ascend.c
clean :
rm -f $(OBJECTS) \
wiretap-*.lib \
wiretap-*.exp \
wiretap-*.dll \
wiretap-*.dll.manifest \
*.nativecodeanalysis.xml *.pdb *.sbr
#
# We remove the generated files with "distclean" because one of them,
# "ascend_scanner.c", needs different #includes for UN*X and Windows
# (UN*X versions of Flex make it include <unistd.h>, but that's a
# UN*X-only header), so if you're going to build from source, you need
# to build "ascend_scanner.c" from "ascend_scanner.l" with Flex.
# This might not be necessary for "ascend.{c,h}", but as
# long as you need Flex, you might as well get Bison....
#
distclean: clean
rm -f $(GENERATED_FILES)
maintainer-clean: distclean
checkapi:
## 'abort' checking disabled for now pending resolution of existing use of g_assert & g_error
## $(PERL) ../tools/checkAPIs.pl -g abort -g termoutput $(NONGENERATED_C_FILES) $(GENERATOR_FILES)
$(PERL) ../tools/checkAPIs.pl -g termoutput -build $(NONGENERATED_C_FILES) $(GENERATOR_FILES)