lib/libpicrin.so -> libpicrin.so

This commit is contained in:
Yuichi Nishiwaki 2017-03-23 00:40:33 +09:00
parent 9377999579
commit 8759f867b7
1 changed files with 8 additions and 7 deletions

View File

@ -43,8 +43,9 @@ src/load_piclib.c: $(CONTRIB_LIBS)
src/init_contrib.c: src/init_contrib.c:
perl etc/mkinit.pl $(CONTRIB_INITS) > $@ perl etc/mkinit.pl $(CONTRIB_INITS) > $@
lib/libpicrin.so: $(LIBPICRIN_OBJS) # FIXME: Undefined symbols error for _emyg_atod and _emyg_dtoa
$(CC) -shared $(CFLAGS) -o $@ $(LIBPICRIN_OBJS) $(LDFLAGS) # libpicrin.so: $(LIBPICRIN_OBJS)
# $(CC) -shared $(CFLAGS) -o $@ $(LIBPICRIN_OBJS) $(LDFLAGS)
lib/boot.o: lib/boot.c lib/boot.o: lib/boot.c
cd lib; perl boot.c cd lib; perl boot.c
@ -71,10 +72,10 @@ test: test-contribs test-nostdlib test-issue
test-contribs: picrin $(CONTRIB_TESTS) test-contribs: picrin $(CONTRIB_TESTS)
test-nostdlib: test-nostdlib:
$(CC) -I lib/include -D'PIC_USE_LIBC=0' -D'PIC_USE_STDIO=0' -D'PIC_USE_WRITE=0' -ffreestanding -nostdlib -Os -fPIC -shared -std=c89 -pedantic -Wall -Wextra -Werror -o lib/libpicrin-tiny.so $(LIBPICRIN_SRCS) etc/libc_polyfill.c -fno-stack-protector $(CC) -I./lib/include -D'PIC_USE_LIBC=0' -D'PIC_USE_STDIO=0' -D'PIC_USE_WRITE=0' -ffreestanding -nostdlib -Os -fPIC -shared -std=c89 -pedantic -Wall -Wextra -Werror -o libpicrin-tiny.so $(LIBPICRIN_SRCS) etc/libc_polyfill.c -fno-stack-protector
strip lib/libpicrin-tiny.so strip libpicrin-tiny.so
ls -lh lib/libpicrin-tiny.so ls -lh libpicrin-tiny.so
rm -f lib/libpicrin-tiny.so rm -f libpicrin-tiny.so
test-issue: test-picrin-issue test-repl-issue test-issue: test-picrin-issue test-repl-issue
@ -93,7 +94,7 @@ install: all
clean: clean:
rm -f src/load_piclib.c src/init_contrib.c rm -f src/load_piclib.c src/init_contrib.c
rm -f lib/libpicrin.so rm -f libpicrin.so libpicrin-tiny.so
rm -f $(LIBPICRIN_OBJS) rm -f $(LIBPICRIN_OBJS)
rm -f $(PICRIN_OBJS) rm -f $(PICRIN_OBJS)
rm -f $(CONTRIB_OBJS) rm -f $(CONTRIB_OBJS)