Skip to content

Commit

Permalink
fixed #19: supported libkcc of .dll and .so.
Browse files Browse the repository at this point in the history
  • Loading branch information
Kray-G committed Oct 28, 2019
1 parent bb6c84e commit 4fb4642
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 9 deletions.
11 changes: 4 additions & 7 deletions Makefile.msc
Original file line number Diff line number Diff line change
Expand Up @@ -112,9 +112,6 @@ onig_s.lib:
cd ../../../../
copy /y src\_extdll\lib\onig\onig_s.lib .

sample_dll.dll: sample_dll.obj
$(CC) /nologo /LD /MT /Iinclude sample_dll.c

clean:
del /S *.exe *.obj *.dll *.lib > NUL
del *.exp > NUL
Expand All @@ -125,11 +122,11 @@ clean:
$(NAME)ext.dll: $(EXTOBJ)
$(CC) /Fe$(NAME)ext.dll /LD $(EXTOBJ) onig_s.lib

$(NAME).exe: $(NAME)lib.dll
$(CC) $(CFLAGS) /Fe$(NAME).exe $(MAINOBJ:.obj=.c) $(NAME)lib.lib
$(NAME).exe: lib$(NAME).dll
$(CC) $(CFLAGS) /Fe$(NAME).exe $(MAINOBJ:.obj=.c) lib$(NAME).lib

$(NAME)lib.dll: $(OBJS)
$(CC) /LD /Fe$(NAME)lib.dll $(OBJS)
lib$(NAME).dll: $(OBJS)
$(CC) /LD /Felib$(NAME).dll $(OBJS)

$(NAME)bltin.dll: $(BUILTIN)
$(CC) $(CFLAGS) /LD /Fe$(NAME)bltin.dll $(BUILTIN:.obj=.c) src\kccutil.obj src/util/string.obj
Expand Down
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -290,15 +290,13 @@ fib
I have a plan to do the followings when I have a time.

* [ ] Providing all of Standard C Library.
* [ ] Adding a library of SQLite3.
* [ ] Adding a library of XML Parser.
* [ ] Adding a library of JSON Parser.
* [ ] Adding a library with libCurl.
* [ ] Supporting encryption of Zip/Unzip.
* [ ] Supporting jump table for switch-case.
* [ ] One instruction for increment and decrement.
* [ ] Combining VM instructions to improve the performance.
* [ ] Building libkcc to use it as a shared library.

## License

Expand Down

0 comments on commit 4fb4642

Please sign in to comment.