add test-nostdlib target
This commit is contained in:
parent
92bed39fae
commit
bad14933d2
5
Makefile
5
Makefile
|
@ -25,7 +25,6 @@ CONTRIB_TESTS =
|
||||||
CONTRIB_DOCS = $(wildcard contrib/*/docs/*.rst)
|
CONTRIB_DOCS = $(wildcard contrib/*/docs/*.rst)
|
||||||
|
|
||||||
CFLAGS += -I./extlib/benz/include
|
CFLAGS += -I./extlib/benz/include
|
||||||
# CFLAGS += -std=c89 -ansi -pedantic
|
|
||||||
LDFLAGS += -lm
|
LDFLAGS += -lm
|
||||||
|
|
||||||
prefix = /usr/local
|
prefix = /usr/local
|
||||||
|
@ -73,6 +72,10 @@ test-r7rs: bin/picrin t/r7rs-tests.scm
|
||||||
|
|
||||||
test-contribs: bin/picrin $(CONTRIB_TESTS)
|
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: all
|
||||||
install -c bin/picrin $(prefix)/bin/picrin
|
install -c bin/picrin $(prefix)/bin/picrin
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue