diff --git a/programs/develop/ktcc/trunk/bin/lib/libck.a b/programs/develop/ktcc/trunk/bin/lib/libck.a index 8a4d75cdd5..bd72aeb30e 100644 Binary files a/programs/develop/ktcc/trunk/bin/lib/libck.a and b/programs/develop/ktcc/trunk/bin/lib/libck.a differ diff --git a/programs/develop/ktcc/trunk/bin/lib/libnetwork.a b/programs/develop/ktcc/trunk/bin/lib/libnetwork.a new file mode 100644 index 0000000000..200b6f9f58 Binary files /dev/null and b/programs/develop/ktcc/trunk/bin/lib/libnetwork.a differ diff --git a/programs/develop/ktcc/trunk/lib/libnetwork/Makefile b/programs/develop/ktcc/trunk/lib/libnetwork/Makefile new file mode 100644 index 0000000000..688aaa7184 --- /dev/null +++ b/programs/develop/ktcc/trunk/lib/libnetwork/Makefile @@ -0,0 +1,7 @@ +all: + fasm network.asm + ar -csr libnetwork.a network.o +clean: + rm -f *.o *.a +install: + cp libnetwork.a ../../bin/lib diff --git a/programs/develop/ktcc/trunk/libc/net/network.asm b/programs/develop/ktcc/trunk/lib/libnetwork/network.asm similarity index 99% rename from programs/develop/ktcc/trunk/libc/net/network.asm rename to programs/develop/ktcc/trunk/lib/libnetwork/network.asm index 5d996a5663..58da472707 100644 --- a/programs/develop/ktcc/trunk/libc/net/network.asm +++ b/programs/develop/ktcc/trunk/lib/libnetwork/network.asm @@ -43,7 +43,7 @@ import networklib, \ inet_ntoa, 'inet_ntoa', \ getaddrinfo, 'getaddrinfo', \ freeaddrinfo, 'freeaddrinfo' - + public inet_addr as 'inet_addr' public inet_ntoa as 'inet_ntoa' public getaddrinfo as 'getaddrinfo' diff --git a/programs/develop/ktcc/trunk/samples/Makefile b/programs/develop/ktcc/trunk/samples/Makefile index 92e8f7ba6c..1fea672d73 100755 --- a/programs/develop/ktcc/trunk/samples/Makefile +++ b/programs/develop/ktcc/trunk/samples/Makefile @@ -13,6 +13,7 @@ all: ../bin/kos32-tcc console/console.c -lck -limg -o console/console.kex -I ../libc/include ../bin/kos32-tcc dir_example.c -lck -o dir_example.kex -I ../libc/include ../bin/kos32-tcc net/tcpsrv_demo.c -lck -o net/tcpsrv_demo.kex -I ../libc/include + ../bin/kos32-tcc net/nslookup.c -lck -lnetwork -o net/nslookup.kex -I ../libc/include clean: rm *.kex diff --git a/programs/develop/ktcc/trunk/samples/build_all.sh b/programs/develop/ktcc/trunk/samples/build_all.sh index fc269226fa..3a2ab0cd26 100644 --- a/programs/develop/ktcc/trunk/samples/build_all.sh +++ b/programs/develop/ktcc/trunk/samples/build_all.sh @@ -13,5 +13,5 @@ ../tcc console/console.c -lck -limg -o /tmp0/1/console ../tcc dir_example.c -lck -o /tmp0/1/dir_example ../tcc net/tcpsrv_demo.c -lck -o /tmp0/1/tcpsrv_demo -../tcc net/nslookup.c -lck -o /tmp0/1/nslookup +../tcc net/nslookup.c -lck -lnetwork -o /tmp0/1/nslookup exit