-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
25 lines (24 loc) · 970 Bytes
/
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
# Nujel - Copyright (C) 2020-2022 - Benjamin Vincent Schulenburg
# This project uses the MIT license, a copy should be included under /LICENSE */
#
# This trick is originally from BearSSL to distinguish between bmake/nmake
# ======================================================================
# The lines below are a horrible hack that nonetheless works. On a
# "make" utility compatible with Single Unix v4 (this includes GNU and
# BSD make), the '\' at the end of a command line counts as an escape
# for the newline character, so the next line is still a comment.
# However, Microsoft's nmake.exe (that comes with Visual Studio) does
# not interpret the final '\' that way in a comment. The end result is
# that when using nmake.exe, this will include "mk/nmake.mk", whereas
# GNU/BSD make will include "mk/bmake.mk".
!ifndef 0 # \
!include mk/nmake.mk # \
!else
.POSIX:
include mk/bmake.mk
# Extra hack for OpenBSD make.
ifndef: all
0: all
endif: all
# \
!endif