|
64 | 64 | # warning-tests |
65 | 65 | # clean-tests |
66 | 66 | # |
67 | | -# bootstrap-dist Create source package with precompiled fbc sources |
68 | | -# bootstrap Build fbc from the precompiled sources (only if precompiled sources exist) |
| 67 | +# bootstrap-dist Create source package with precompiled fbc sources |
| 68 | +# bootstrap Build fbc from the precompiled sources (only if precompiled sources exist) |
| 69 | +# bootstrap-minimal Build fbc from the precompiled sources (only if precompiled sources exist) with only the minimal features needed to compile another fbc |
69 | 70 | # |
70 | 71 | # makefile configuration: |
71 | 72 | # FB[C|L]FLAGS to set -g -exx etc. for the compiler build and/or link |
@@ -368,6 +369,11 @@ ALLFBCFLAGS += -e -m fbc -w pedantic |
368 | 369 | ALLFBLFLAGS += -e -m fbc -w pedantic |
369 | 370 | ALLCFLAGS += -Wall -Wextra -Wno-unused-parameter -Werror-implicit-function-declaration |
370 | 371 |
|
| 372 | +ifneq ($(filter bootstrap-minimal, $(MAKECMDGOALS)),) |
| 373 | + # Disable features not needed to compile a minimal bootstrap fbc |
| 374 | + ALLCFLAGS += -DDISABLE_GPM -DDISABLE_FFI -DDISABLE_X11 |
| 375 | +endif |
| 376 | + |
371 | 377 | ifeq ($(TARGET_OS),xbox) |
372 | 378 | ifeq ($(OPENXDK),) |
373 | 379 | $(error Please set OPENXDK=<OpenXDK directory>) |
@@ -1061,9 +1067,11 @@ bootstrap-dist: |
1061 | 1067 | # Build the fbc[.exe] binary from the precompiled sources in the bootstrap/ |
1062 | 1068 | # directory. |
1063 | 1069 | # |
| 1070 | +.PHONY: bootstrap bootstrap-minimal |
| 1071 | +bootstrap: gfxlib2 bootstrap-minimal |
| 1072 | + |
1064 | 1073 | BOOTSTRAP_FBC := bootstrap/fbc$(EXEEXT) |
1065 | | -.PHONY: bootstrap |
1066 | | -bootstrap: gfxlib2 $(BOOTSTRAP_FBC) |
| 1074 | +bootstrap-minimal: $(BOOTSTRAP_FBC) |
1067 | 1075 | mkdir -p bin |
1068 | 1076 | cp $(BOOTSTRAP_FBC) $(FBC_EXE) |
1069 | 1077 |
|
|
0 commit comments