3c880bbb56
* libc/libc-mes.c: New file. Contents from module/mes/libc.mes, module/mes/libc-i386.mes. * libc/libc-gcc.c: Rename from libc/mlibc.c, include libc/mstart.c * libc/mstart.c: Remove. * module/mes/libc-i386.mes: Remove. * module/mes/libc-i386.scm: Remove. * module/mes/libc.mes: Remove. * module/mes/libc.scm: Remove. * GNUmakefile (CFLAGS): Include libc-gcc.c (WAS: mlibc.c). * make/bin-mlibc.make (C_FLAGS): Remove start.c include. * make/mescc-guile.make: Rewrite using compile, link. * make/mescc-mes.make: Likewise. * scaffold/m.c: Update.
17 lines
295 B
Makefile
17 lines
295 B
Makefile
ifeq ($(TEST),)
|
|
TEST:=$(TARGET)-check
|
|
$(TEST): EXPECT:=$(EXPECT)
|
|
$(TEST): SHELL:=$(SHELL)
|
|
$(TEST): $(OUT)/$(TARGET)
|
|
@export SHELL=$(SHELL)
|
|
ifeq ($(EXPECT),)
|
|
$<
|
|
else
|
|
$<; r=$$?; [ $$r = $(EXPECT) ]
|
|
endif
|
|
endif
|
|
CHECK+=$(TEST)
|
|
$(TEST): TEST:=$(TEST)
|
|
$(DIR)-check: $(TEST)
|
|
include make/reset.make
|