-
Notifications
You must be signed in to change notification settings - Fork 0
/
omake.ini
77 lines (55 loc) · 2.17 KB
/
omake.ini
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
# ---- BEGIN - OMake configuration file
# Location of OfrontPlus distribution
set: OFRONT $OFRONT
# Name of target (eg. macOS, Win64, Linux_amd64, BlackBox)
# see list of targets in $OFRONT/Target
set: TARGET $OTARGET
# Location of Ofront library source files.
# Required by OMake to locate library sources, and by linker for include files
set: OFRONTLIB {OFRONT}/Mod/Lib
# Location of Ofront library object files.
# Required by linker to locate library object files (.c)
set: TARGETLIB {OFRONT}/Target/{TARGET}/Lib
# Paths to source code files. Path elements are separated by commas
source: src,src/X11,src/Windows,[OFRONTLIB]
# ---- Module extensions
# Here we list the valid module extensions, and any compiler flags
# associated with file type. Use this to define Oberon dialects
#
# arg 1: Module extension without leading "."
# arg 2: List of associated compiler flags
extension: Mod "-2"
extension: ob "-1"
extension: ob2 "-2"
extension: ob3 "-3"
extension: ob7 "-7"
extension: cp "-C"
# ---- Ofront+ compile command
compile: "ofront+ -88 -s -e"
# ---- Link comand
# Always include OFRONTLIB for SYSTEM.oh
# link: "gcc -g -O3 -fomit-frame-pointer -fno-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables -ffunction-sections -I{OFRONTLIB}"
link: "gcc -O3 -g3"
# ---- Built-in modules without source files
# OMake will not attempt to locate and parse these modules
exclude: Platform,SYSTEM
# ---- Source directories that represent libraries
# A source file located in the directory is assumed part of the library
# which causes the library to be added to the linker command
#
# arg 1: Library name
# arg 2: Directory containing library source files
lib: Ofront [OFRONTLIB]
# ---- Libraries that must always be linked (eg. for the language runtime)
require: Ofront
# ---- Linker flags required by various libraries
# This defines any additional flags (eg. -I, -L) required by the link
# command (ie. gcc) to link the program. Do not add -l flags here as
# these are added implicitly by OMake
#
# arg 1: Library name
# arg 2: Linker flags (eg. -I, -L) required for library
linkflag: Ofront -I{OFRONTLIB}
linkflag: Ofront -I{TARGETLIB}/Obj
linkflag: Ofront -L{TARGETLIB}
# ---- END