diff --git a/Makefile b/Makefile index 8305c3f8..6890aa97 100644 --- a/Makefile +++ b/Makefile @@ -25,7 +25,6 @@ CONTRIB_TESTS = CONTRIB_DOCS = $(wildcard contrib/*/docs/*.rst) CFLAGS += -I./extlib/benz/include -# CFLAGS += -std=c89 -ansi -pedantic LDFLAGS += -lm prefix = /usr/local @@ -73,6 +72,10 @@ test-r7rs: bin/picrin t/r7rs-tests.scm test-contribs: bin/picrin $(CONTRIB_TESTS) +test-nostdlib: + $(CC) -I extlib/benz/include -D'PIC_ENABLE_LIBC=0' -D'PIC_ENABLE_FLOAT=0'-nostdlib -shared -std=c89 -ansi -pedantic -Wall -Wextra -Werror -o lib/libbenz.so $(BENZ_SRCS) + rm -f lib/libbenz.so + install: all install -c bin/picrin $(prefix)/bin/picrin