-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.vbcc
executable file
·39 lines (30 loc) · 1.09 KB
/
Makefile.vbcc
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
##############################################################################
# Common part of Makefile for vbcc
#
# All of CC/EXT/OBJDIR should already be defined
##############################################################################
ifeq ($(origin CC),default)
error:
@echo ERROR: You must use Makefile.vbcc-aos or Makefile.vbcc-mos
@fail
endif
ifneq ($(lastword $(MAKEFILE_LIST)),Makefile.vbcc)
MAKEFILE_LIST += Makefile.vbcc
endif
EXT := vbcc
LDOBJS = $(OBJDIR)/\#?
include Makefile
OFLAGS := -speed -maxoptpasses=199 -O3
CFLAGS := -stack-check -soft-float
WFLAGS := -dontwarn=153 -dontwarn=175
LDFLAGS =
LIBS = -lamiga -lmsoft
GREP = :ade/bin/grep # FIXME
COMPILE_EXTRA = | $(GREP) -v -E "warning 120|>[{]|>extern"
# These file take too much memory to compile with -O3, so we reduce optim level a bit
NO_O3 = $(OBJDIR)/expressc.o $(OBJDIR)/files.o
$(NO_O3): $(OBJDIR)/%.o: src/Inform6/%.c
$(TMAKE) tstart
$(HIDDEN)$(INFO) $(NOLINE) "Compiling $< with $(EXT)..."
$(HIDDEN)$(CC) $(subst -O3,-O1295,$(COMPILE_OPTS)) $(COMPILE_TO) "$@" "$<" $(COMPILE_EXTRA)
$(TMAKE) tstop_done