![Jan Nieuwenhuizen](/assets/img/avatar_default.png)
* GNUmakefile (build-scripts): New target (HELP_TOP): Mention it. * configure (main): Write GUILE_FOR_BUILD. * make/bin-mlibc.make: Skip if CC32 is not set. * make/bin.make: Skip if CC is not set. * make/install.make (install): Only install $(OUT)/mes.mes if MES_BOOTSTRAP is set. * make/mescc-guile.make: Skip if GUILE is not set. * make/mescc-mes.make: Skip if MES is not set. * HACKING: write something about
28 lines
682 B
Makefile
28 lines
682 B
Makefile
ifneq ($(CC),)
|
|
O_FILES := $(C_FILES:%.c=$(OUT)/%.$(CROSS)o)
|
|
D_FILES := $(O_FILES:%o=%d)
|
|
|
|
ifneq ($(DEBUG),)
|
|
$(info TARGET=$(TARGET))
|
|
$(info C_FILES=$(C_FILES))
|
|
$(info O_FILES=$(O_FILES))
|
|
$(info D_FILES=$(D_FILES))
|
|
endif
|
|
|
|
CLEAN+=$(O_FILES) $(OUT)/$(TARGET)
|
|
DIST-CLEAN+=$(D_FILES)
|
|
|
|
INCLUDES+=libc/include libc $(OUT)/$(DIR)
|
|
|
|
$(OUT)/$(TARGET): ld:=$(CROSS)LD
|
|
$(OUT)/$(TARGET): LD:=$(CROSS)$(LD)
|
|
$(OUT)/$(TARGET): CC:=$(CROSS)$(CC)
|
|
$(OUT)/$(TARGET): LDFLAGS:=$(LDFLAGS) $(LD_FLAGS) $(LINK)
|
|
$(OUT)/$(TARGET): O_FILES:=$(O_FILES)
|
|
$(OUT)/$(TARGET): $(O_FILES)
|
|
@echo " $(ld) $(notdir $^) -> $(notdir $@)"
|
|
$(QUIET)$(LINK.c) $^ $(LOADLIBES) $(LDLIBS) -o $@
|
|
|
|
include make/compile.make
|
|
endif
|