- network.obj loader has been moved to a separate libnetwork.a library

git-svn-id: svn://kolibrios.org@8338 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
superturbocat2001 2020-12-07 23:36:57 +00:00
parent 1094e71a7d
commit 4c90768ccb
6 changed files with 10 additions and 2 deletions

Binary file not shown.

View File

@ -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

View File

@ -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'

View File

@ -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

View File

@ -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