2017-04-12 19:27:59 +00:00
|
|
|
TARGET:=m
|
|
|
|
C_FILES:=$(DIR)/m.c
|
|
|
|
DEFINES:=POSIX=1
|
2017-06-03 10:11:57 +00:00
|
|
|
INCLUDES:=mlibc
|
2017-04-12 19:27:59 +00:00
|
|
|
include make/bin.make
|
|
|
|
|
|
|
|
TARGET:=m
|
|
|
|
EXPECT:=255
|
|
|
|
include make/check.make
|
|
|
|
|
|
|
|
TARGET:=hello
|
|
|
|
C_FILES:=$(DIR)/hello.c
|
|
|
|
DEFINES:=POSIX=1
|
2017-06-03 10:11:57 +00:00
|
|
|
INCLUDES:=mlibc
|
2017-04-12 19:27:59 +00:00
|
|
|
include make/bin.make
|
|
|
|
|
|
|
|
TARGET:=hello
|
|
|
|
EXPECT:=42
|
|
|
|
include make/check.make
|
|
|
|
|
|
|
|
TARGET:=t
|
|
|
|
C_FILES:=$(DIR)/t.c
|
|
|
|
DEFINES:=POSIX=1
|
2017-06-03 10:11:57 +00:00
|
|
|
INCLUDES:=mlibc
|
2017-04-12 19:27:59 +00:00
|
|
|
include make/bin.make
|
|
|
|
|
|
|
|
TARGET:=t
|
|
|
|
include make/check.make
|
|
|
|
|
2017-05-31 18:52:48 +00:00
|
|
|
TARGET:=t-tcc
|
|
|
|
C_FILES:=$(DIR)/t-tcc.c
|
|
|
|
DEFINES:=POSIX=1
|
2017-06-03 10:11:57 +00:00
|
|
|
INCLUDES:=mlibc
|
2017-05-31 18:52:48 +00:00
|
|
|
include make/bin.make
|
|
|
|
|
|
|
|
TARGET:=t-tcc
|
|
|
|
include make/check.make
|
|
|
|
|
2017-04-12 19:27:59 +00:00
|
|
|
TARGET:=m.mlibc
|
|
|
|
C_FILES:=$(DIR)/m.c
|
2017-05-02 21:30:46 +00:00
|
|
|
include make/bin-mlibc.make
|
2017-04-12 19:27:59 +00:00
|
|
|
|
|
|
|
TARGET:=m.mlibc
|
|
|
|
EXPECT:=255
|
2017-06-20 17:07:31 +00:00
|
|
|
include make/check-mlibc.make
|
2017-04-12 19:27:59 +00:00
|
|
|
|
|
|
|
TARGET:=hello.mlibc
|
|
|
|
C_FILES:=$(DIR)/hello.c
|
2017-05-02 21:30:46 +00:00
|
|
|
include make/bin-mlibc.make
|
2017-04-12 19:27:59 +00:00
|
|
|
|
|
|
|
TARGET:=hello.mlibc
|
|
|
|
EXPECT:=42
|
2017-06-20 17:07:31 +00:00
|
|
|
include make/check-mlibc.make
|
2017-04-12 19:27:59 +00:00
|
|
|
|
|
|
|
TARGET:=micro-mes.mlibc
|
|
|
|
C_FILES:=$(DIR)/micro-mes.c
|
2017-05-02 21:30:46 +00:00
|
|
|
include make/bin-mlibc.make
|
2017-04-12 19:27:59 +00:00
|
|
|
|
|
|
|
TEST:=micro-mes.mlibc-check
|
|
|
|
$(TEST): $(OUT)/micro-mes.mlibc
|
|
|
|
$< 2 3; r=$$?; [ $$r = 3 ]
|
2017-06-20 17:07:31 +00:00
|
|
|
include make/check-mlibc.make
|
2017-04-12 19:27:59 +00:00
|
|
|
|
|
|
|
TARGET:=t.mlibc
|
|
|
|
C_FILES:=$(DIR)/t.c
|
2017-05-02 21:30:46 +00:00
|
|
|
include make/bin-mlibc.make
|
2017-04-12 19:27:59 +00:00
|
|
|
|
|
|
|
TARGET:=t.mlibc
|
2017-06-20 17:07:31 +00:00
|
|
|
include make/check-mlibc.make
|
2017-04-12 19:27:59 +00:00
|
|
|
|
2017-05-31 18:52:48 +00:00
|
|
|
TARGET:=t-tcc.mlibc
|
|
|
|
C_FILES:=$(DIR)/t-tcc.c
|
|
|
|
include make/bin-mlibc.make
|
|
|
|
|
|
|
|
TARGET:=t-tcc.mlibc
|
2017-06-20 17:07:31 +00:00
|
|
|
include make/check-mlibc.make
|
2017-05-31 18:52:48 +00:00
|
|
|
|
|
|
|
CROSS:=$(CC32:%gcc=%)
|
|
|
|
#$(OUT)/$(DIR)/mini-mes.$(CROSS)o: $(SNARF.MES)
|
|
|
|
$(OUT)/mini-mes: $(SNARF.MES)
|
|
|
|
|
|
|
|
TARGET:=mini-mes.mlibc
|
2017-04-12 19:27:59 +00:00
|
|
|
# guile/mescc.scm
|
|
|
|
|
|
|
|
TARGET:=m.guile
|
|
|
|
C_FILES:=$(DIR)/m.c
|
|
|
|
include make/mescc-guile.make
|
|
|
|
|
|
|
|
TARGET:=m.guile
|
|
|
|
EXPECT:=255
|
|
|
|
include make/check.make
|
|
|
|
|
|
|
|
TARGET:=hello.guile
|
|
|
|
C_FILES:=$(DIR)/hello.c
|
|
|
|
include make/mescc-guile.make
|
|
|
|
|
|
|
|
TARGET:=hello.guile
|
|
|
|
EXPECT:=42
|
|
|
|
include make/check.make
|
|
|
|
|
|
|
|
TARGET:=micro-mes.guile
|
|
|
|
C_FILES:=$(DIR)/micro-mes.c
|
|
|
|
include make/mescc-guile.make
|
|
|
|
|
|
|
|
TEST:=micro-mes.guile-check
|
|
|
|
$(TEST): $(OUT)/micro-mes.guile
|
|
|
|
$< 2 3; r=$$?; [ $$r = 3 ]
|
|
|
|
include make/check.make
|
|
|
|
|
|
|
|
TARGET:=t.guile
|
|
|
|
C_FILES:=$(DIR)/t.c
|
|
|
|
include make/mescc-guile.make
|
|
|
|
|
|
|
|
TARGET:=t.guile
|
|
|
|
include make/check.make
|
|
|
|
|
2017-05-31 18:52:48 +00:00
|
|
|
TARGET:=t-tcc.guile
|
|
|
|
C_FILES:=$(DIR)/t-tcc.c
|
|
|
|
include make/mescc-guile.make
|
|
|
|
|
|
|
|
TARGET:=t-tcc.guile
|
|
|
|
include make/check.make
|
|
|
|
|
2017-04-12 19:27:59 +00:00
|
|
|
# scripts/mescc.mes
|
2017-05-28 16:32:53 +00:00
|
|
|
ifneq ($(MES),)
|
2017-04-12 19:27:59 +00:00
|
|
|
TARGET:=m.mes
|
|
|
|
C_FILES:=$(DIR)/m.c
|
|
|
|
include make/mescc-mes.make
|
|
|
|
|
|
|
|
TARGET:=m.mes
|
|
|
|
EXPECT:=255
|
|
|
|
include make/check.make
|
|
|
|
|
2017-05-28 16:32:53 +00:00
|
|
|
ifneq ($(MES_SCAFFOLD),)
|
2017-04-12 19:27:59 +00:00
|
|
|
TARGET:=hello.mes
|
|
|
|
C_FILES:=$(DIR)/hello.c
|
|
|
|
include make/mescc-mes.make
|
|
|
|
|
|
|
|
TARGET:=hello.mes
|
|
|
|
EXPECT:=42
|
|
|
|
include make/check.make
|
|
|
|
|
|
|
|
TARGET:=micro-mes.mes
|
|
|
|
C_FILES:=$(DIR)/micro-mes.c
|
|
|
|
include make/mescc-mes.make
|
|
|
|
|
|
|
|
TEST:=micro-mes.mes-check
|
|
|
|
$(TEST): $(OUT)/micro-mes.mes
|
|
|
|
$< 2 3; r=$$?; [ $$r = 3 ]
|
|
|
|
include make/check.make
|
|
|
|
endif # !SCAFFOLD
|
|
|
|
|
|
|
|
TARGET:=t.mes
|
|
|
|
C_FILES:=$(DIR)/t.c
|
|
|
|
include make/mescc-mes.make
|
|
|
|
|
|
|
|
TARGET:=t.mes
|
|
|
|
include make/check.make
|
2017-05-02 21:30:46 +00:00
|
|
|
endif
|