From 2fb17afdfc3dfa980de09f0d9e19a5d43aa93e37 Mon Sep 17 00:00:00 2001 From: Yuichi Nishiwaki Date: Thu, 9 Jul 2015 04:07:12 +0900 Subject: [PATCH] move picrin/macro.scm. remove piclib/ --- Makefile | 6 ++---- {piclib/picrin => contrib/10.macro}/macro.scm | 0 contrib/10.macro/nitro.mk | 6 ++++++ {t => contrib/10.macro/t}/ir-macro.scm | 0 4 files changed, 8 insertions(+), 4 deletions(-) rename {piclib/picrin => contrib/10.macro}/macro.scm (100%) create mode 100644 contrib/10.macro/nitro.mk rename {t => contrib/10.macro/t}/ir-macro.scm (100%) diff --git a/Makefile b/Makefile index 6a317037..3c0b4623 100644 --- a/Makefile +++ b/Makefile @@ -7,8 +7,6 @@ PICRIN_SRCS = \ src/init_contrib.c PICRIN_OBJS = \ $(PICRIN_SRCS:.c=.o) -PICRIN_LIBS = \ - piclib/picrin/macro.scm CONTRIB_SRCS = CONTRIB_OBJS = $(CONTRIB_SRCS:.c=.o) @@ -33,8 +31,8 @@ debug: bin/picrin bin/picrin: $(PICRIN_OBJS) $(CONTRIB_OBJS) lib/libbenz.a $(CC) $(CFLAGS) -o $@ $(PICRIN_OBJS) $(CONTRIB_OBJS) lib/libbenz.a $(LDFLAGS) -src/load_piclib.c: $(PICRIN_LIBS) $(CONTRIB_LIBS) - perl etc/mkloader.pl $(PICRIN_LIBS) $(CONTRIB_LIBS) > $@ +src/load_piclib.c: $(CONTRIB_LIBS) + perl etc/mkloader.pl $(CONTRIB_LIBS) > $@ src/init_contrib.c: perl etc/mkinit.pl $(CONTRIB_INITS) > $@ diff --git a/piclib/picrin/macro.scm b/contrib/10.macro/macro.scm similarity index 100% rename from piclib/picrin/macro.scm rename to contrib/10.macro/macro.scm diff --git a/contrib/10.macro/nitro.mk b/contrib/10.macro/nitro.mk new file mode 100644 index 00000000..a426ad2a --- /dev/null +++ b/contrib/10.macro/nitro.mk @@ -0,0 +1,6 @@ +CONTRIB_LIBS += $(wildcard contrib/10.macro/*.scm) + +CONTRIB_TESTS += test-macro + +test-macro: bin/picrin + bin/picrin contrib/10.macro/t/ir-macro.scm diff --git a/t/ir-macro.scm b/contrib/10.macro/t/ir-macro.scm similarity index 100% rename from t/ir-macro.scm rename to contrib/10.macro/t/ir-macro.scm