-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcommon.mk
More file actions
32 lines (25 loc) · 762 Bytes
/
common.mk
File metadata and controls
32 lines (25 loc) · 762 Bytes
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
GEN = build
STZ_FLAGS = -pkg ${GEN} ${STZ_OPT}
ALL_DEPS =
STANZADIR = `python stanza-utils/stanza-install-dir.py`
STZ_COMPILER_MAIN = ${STANZADIR}/compiler/stz-main.stanza
BASE_EVAL_PKGS = ${GEN}/eval-core.pkg ${GEN}/eval-collections.pkg ${GEN}/eval-math.pkg ${GEN}/eval.pkg
print_stz_compiler_main:
echo ${STZ_COMPILER_MAIN}
COMMON_FLAGS = ${GEN}/file-system.o
OS2 := $(strip $(shell uname))
ifeq ($(OS2), Darwin)
$(info Compiling for Darwin)
CFLAGS = -DMACOSX=1
LIBS = $(COMMON_LIBS)
else
$(info Compiling for non Darwin)
OS := $(strip $(shell uname -o))
ifeq ($(OS), GNU/Linux)
$(info Compiling for GNU/Linux)
CFLAGS =
LIBS = $(COMMON_LIBS) -lm
endif
endif
clean:
rm -f ${GEN}/*; echo "build products" > ${GEN}/readme.txt