-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
72 lines (60 loc) · 1.13 KB
/
Makefile
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
PROG= bmake
SUBDIR+= tre
DPADD+= tre
LDADD+= user32.lib tre.lib
LDFLAGS+= /libpath:tre
# Version
CFLAGS+= /D MAKE_VERSION=\"20240625\"
TARGET?= ${VSCMD_ARG_TGT_ARCH:U${PROCESSOR_ARCHITECTURE}:tl:S,x64,amd64,1:S,x86,i386,1}
CFLAGS+= /D MACHINE=\"${TARGET}\"
# Disable some warnings
# Disable warning when size_t is converted to a smaller type.
# arguably we can avoid this using a cast.
# Used in LoadFile in parse.c
NOWARN+= 4267
# This disables a warning we get when using the '-' operator on an
# unsigned type.
# Used in TryParseNumber in parse.c
NOWARN+= 4146
# Disable the deprecated function warning, which triggers on alot
# of the standard libc functions.
# Used all over the place.
NOWARN+= 4996
CFLAGS+= ${NOWARN:@w@/wd$w@}
CFLAGS+= \
/D USE_META \
/D HAVE_REGEX_H \
/MT \
/W3
SRCS= \
arch.c \
buf.c \
compat.c \
cond.c \
dir.c \
dirname.c \
for.c \
hash.c \
job.c \
lst.c \
main.c \
make.c \
make_malloc.c \
message.c \
meta.c \
parse.c \
str.c \
stresep.c \
strlcpy.c \
suff.c \
targ.c \
trace.c \
util.c \
var.c
.if !make(release)
CFLAGS+= /Od
.else
CFLAGS+= /O2 /Ot
release: realbuild
.endif
.include <prog.mk>