This repository was archived by the owner on Jan 11, 2026. It is now read-only.
forked from WeiDUorg/weidu
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsample.Configuration
More file actions
executable file
·84 lines (82 loc) · 2.47 KB
/
Copy pathsample.Configuration
File metadata and controls
executable file
·84 lines (82 loc) · 2.47 KB
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
83
84
# This file has been edited by Fredrik Lindgren, a.k.a. Wisp,
# starting from 18 December 2012 and WeiDU 231.06.
# Autodetection:
# We try to auto-detect X86/Windows/Cygwin, X86/Linux and OSX10.4.
ifdef WINDIR
# (0) X86 / Windows / Cygwin, using MINGW as the C compiler
export ARCHOS = x86_WIN32
export OBJEXT = o
export ARCH_FILE = arch_mingw
export CASE_FILE = case_ins_win
export ARCH_C_FILES = createprocess_win32
export OCAMLDIR = $(shell dirname $(shell which ocaml.exe))
export ELKHOUND_BIN = elkhound.exe
# Selects on the arch of the Cygwin environment
ifeq "$(shell uname -m)" "x86_64"
export WEIDU_ARCH = amd64
export WINDRES_BIN = x86_64-w64-mingw32-windres
else
export WEIDU_ARCH = x86
export WINDRES_BIN = i686-w64-mingw32-windres
endif
export WEIDU_OS = win32
PROJECT_CMODULES = reg
PROJECT2_CMODULES = reg
PROJECT3_CMODULES = reg
export GLOB = glob_win32
export USEOPT = .opt
else
uname=$(shell uname)
ifeq "$(uname)" "Linux"
# (1) X86 / Linux, using GCC as the C Compiler
export ARCHOS = x86_LINUX
export OCAMLDIR = $(shell dirname $(shell which ocaml))
export OBJEXT = o
export ARCH_FILE = arch_unix
export CASE_FILE = case_ins_linux
export GLOB = glob_unix
# Very simplistic arch test
# Does not account for e.g., PPC machines
ifeq "$(shell uname -m)" "x86_64"
export WEIDU_ARCH = amd64
else ifeq "$(shell uname -m)" "aarch64"
export WEIDU_ARCH = arm64
else
export WEIDU_ARCH = x86
endif
export WEIDU_OS = unix
export ELKHOUND_BIN = elkhound
export USEOPT = .opt
PROJECT_CMODULES = nix
else
ifeq "$(uname)" "Darwin"
# (2) Mac OS X, using GCC as the C compiler
export ARCHOS = x86_LINUX
export OCAMLDIR = $(shell dirname $(shell which ocaml))
export OBJEXT = o
export CASE_FILE = case_ins_mac
export GLOB = glob_unix
export ARCH_FILE = arch_osx
# Very simplistic arch test
ifeq "$(shell uname -m)" "x86_64"
export WEIDU_ARCH = amd64
else ifeq "$(shell uname -m)" "aarch64"
export WEIDU_ARCH = arm64
else ifeq "$(shell uname -m)" "i386"
export WEIDU_ARCH = x86
else
export WEIDU_ARCH = mac # PPC
export ARCH_FILE = arch_legacy_osx
endif
export WEIDU_OS = osx
export ELKHOUND_BIN = elkhound
export USEOPT = .opt
PROJECT_CMODULES = nix
endif
endif
endif
ifeq ($(findstring stable,$(wildcard stable)), )
export COMPILEFLAGS = -w y -ccopt -w -g
else
export COMPILEFLAGS = -w y -ccopt -w
endif