use NETWORK_LIBS for linking, define BUILDING_R5_LIBNET if necessary
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@10059 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -107,6 +107,11 @@ switch $(TARGET_PLATFORM)
|
|||||||
HAIKU_COMPATIBLE = true ;
|
HAIKU_COMPATIBLE = true ;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if $(BONE_COMPATIBLE) {
|
||||||
|
NETWORK_LIBS = libsocket.so libbind.so ;
|
||||||
|
} else {
|
||||||
|
NETWORK_LIBS = libnet.so ;
|
||||||
|
}
|
||||||
|
|
||||||
# Determine if we're building on PPC or x86
|
# Determine if we're building on PPC or x86
|
||||||
# Determine mimetype of executable
|
# Determine mimetype of executable
|
||||||
|
|||||||
@@ -20,18 +20,12 @@ Addon IMAP : mail_daemon inbound_protocols :
|
|||||||
imap_config.cpp
|
imap_config.cpp
|
||||||
NestedString.cpp ;
|
NestedString.cpp ;
|
||||||
|
|
||||||
LinkSharedOSLibs IMAP : be libmail.so ;
|
LinkSharedOSLibs IMAP : be libmail.so $(NETWORK_LIBS) ;
|
||||||
|
|
||||||
if $(USESSL) {
|
if $(USESSL) {
|
||||||
LinkSharedOSLibs IMAP : ssl crypto ;
|
LinkSharedOSLibs IMAP : ssl crypto ;
|
||||||
}
|
}
|
||||||
|
|
||||||
if $(BONE_COMPATIBLE) {
|
|
||||||
LinkSharedOSLibs IMAP : socket bind ;
|
|
||||||
} else {
|
|
||||||
LinkSharedOSLibs IMAP : net ;
|
|
||||||
}
|
|
||||||
|
|
||||||
Package haiku-maildaemon-cvs :
|
Package haiku-maildaemon-cvs :
|
||||||
IMAP :
|
IMAP :
|
||||||
boot home config add-ons mail_daemon inbound_protocols ;
|
boot home config add-ons mail_daemon inbound_protocols ;
|
||||||
|
|||||||
@@ -20,18 +20,12 @@ Addon POP3 : mail_daemon inbound_protocols :
|
|||||||
SimpleMailProtocol.cpp
|
SimpleMailProtocol.cpp
|
||||||
md5c.c ;
|
md5c.c ;
|
||||||
|
|
||||||
LinkSharedOSLibs POP3 : be libmail.so ;
|
LinkSharedOSLibs POP3 : be libmail.so $(NETWORK_LIBS) ;
|
||||||
|
|
||||||
if $(USESSL) {
|
if $(USESSL) {
|
||||||
LinkSharedOSLibs POP3 : ssl crypto ;
|
LinkSharedOSLibs POP3 : ssl crypto ;
|
||||||
}
|
}
|
||||||
|
|
||||||
if $(BONE_COMPATIBLE) {
|
|
||||||
LinkSharedOSLibs POP3 : socket bind ;
|
|
||||||
} else {
|
|
||||||
LinkSharedOSLibs POP3 : net ;
|
|
||||||
}
|
|
||||||
|
|
||||||
Package haiku-maildaemon-cvs :
|
Package haiku-maildaemon-cvs :
|
||||||
POP3 :
|
POP3 :
|
||||||
boot home config add-ons mail_daemon inbound_protocols ;
|
boot home config add-ons mail_daemon inbound_protocols ;
|
||||||
|
|||||||
@@ -13,13 +13,7 @@ Addon SMTP : mail_daemon outbound_protocols :
|
|||||||
smtp.cpp
|
smtp.cpp
|
||||||
md5c.c ;
|
md5c.c ;
|
||||||
|
|
||||||
LinkSharedOSLibs SMTP : be libmail.so ;
|
LinkSharedOSLibs SMTP : be libmail.so $(NETWORK_LIBS) ;
|
||||||
|
|
||||||
if $(BONE_COMPATIBLE) {
|
|
||||||
LinkSharedOSLibs SMTP : socket bind ;
|
|
||||||
} else {
|
|
||||||
LinkSharedOSLibs SMTP : net ;
|
|
||||||
}
|
|
||||||
|
|
||||||
Package haiku-maildaemon-cvs :
|
Package haiku-maildaemon-cvs :
|
||||||
SMTP :
|
SMTP :
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ ObjectReferences
|
|||||||
<src!add-ons!print!transports!shared>DbgMsg.o
|
<src!add-ons!print!transports!shared>DbgMsg.o
|
||||||
;
|
;
|
||||||
|
|
||||||
LinkSharedOSLibs IPP : be libsocket.so libbind.so libnet.so stdc++.r4 ;
|
LinkSharedOSLibs IPP : be $(NETWORK_LIBS) stdc++.r4 ;
|
||||||
|
|
||||||
Package haiku-printingkit-cvs :
|
Package haiku-printingkit-cvs :
|
||||||
IPP :
|
IPP :
|
||||||
|
|||||||
@@ -18,8 +18,8 @@ ObjectReferences
|
|||||||
<src!add-ons!print!transports!shared>DbgMsg.o
|
<src!add-ons!print!transports!shared>DbgMsg.o
|
||||||
;
|
;
|
||||||
|
|
||||||
LinkSharedOSLibs LPR : be libsocket.so libbind.so libnet.so stdc++.r4 ;
|
LinkSharedOSLibs LPR : be $(NETWORK_LIBS) stdc++.r4 ;
|
||||||
|
|
||||||
Package haiku-printingkit-cvs :
|
Package haiku-printingkit-cvs :
|
||||||
LPR :
|
LPR :
|
||||||
boot home config add-ons Print transport ;
|
boot home config add-ons Print transport ;
|
||||||
|
|||||||
@@ -2,7 +2,11 @@ SubDir OBOS_TOP src add-ons print transports shared ;
|
|||||||
|
|
||||||
SetupObjectsDir ;
|
SetupObjectsDir ;
|
||||||
|
|
||||||
ObjectC++Flags Socket.cpp : -DHAVE_ARPA_INET -Dclosesocket=close ;
|
if $(BONE_COMPATIBLE) {
|
||||||
|
ObjectC++Flags Socket.cpp : -DHAVE_ARPA_INET -Dclosesocket=close ;
|
||||||
|
} else {
|
||||||
|
ObjectC++Flags Socket.cpp : -DHAVE_ARPA_INET -DBUILDING_R5_LIBNET ;
|
||||||
|
}
|
||||||
|
|
||||||
Objects
|
Objects
|
||||||
DbgMsg.cpp
|
DbgMsg.cpp
|
||||||
|
|||||||
@@ -2,9 +2,13 @@ SubDir OBOS_TOP src apps bin arp ;
|
|||||||
|
|
||||||
UsePrivateHeaders net ;
|
UsePrivateHeaders net ;
|
||||||
|
|
||||||
|
if ! $(BONE_COMPATIBLE) {
|
||||||
|
SubDirCcFlags -DBUILDING_R5_LIBNET ;
|
||||||
|
}
|
||||||
|
|
||||||
BinCommand arp :
|
BinCommand arp :
|
||||||
arp.c
|
arp.c
|
||||||
: libsocket.so libbind.so ;
|
: $(NETWORK_LIBS) ;
|
||||||
|
|
||||||
# Installation -- in the test directory for the time being
|
# Installation -- in the test directory for the time being
|
||||||
OBOSInstall install-networking
|
OBOSInstall install-networking
|
||||||
|
|||||||
@@ -2,9 +2,13 @@ SubDir OBOS_TOP src apps bin ifconfig ;
|
|||||||
|
|
||||||
UsePrivateHeaders net ;
|
UsePrivateHeaders net ;
|
||||||
|
|
||||||
|
if ! $(BONE_COMPATIBLE) {
|
||||||
|
SubDirCcFlags -DBUILDING_R5_LIBNET -Dclose=closesocket ;
|
||||||
|
}
|
||||||
|
|
||||||
BinCommand ifconfig :
|
BinCommand ifconfig :
|
||||||
ifconfig.c
|
ifconfig.c
|
||||||
: libsocket.so libbind.so ;
|
: $(NETWORK_LIBS) ;
|
||||||
|
|
||||||
# Installation -- in the test directory for the time being
|
# Installation -- in the test directory for the time being
|
||||||
OBOSInstall install-networking
|
OBOSInstall install-networking
|
||||||
|
|||||||
@@ -2,9 +2,13 @@ SubDir OBOS_TOP src apps bin ping ;
|
|||||||
|
|
||||||
UsePrivateHeaders net ;
|
UsePrivateHeaders net ;
|
||||||
|
|
||||||
|
if ! $(BONE_COMPATIBLE) {
|
||||||
|
SubDirCcFlags -DBUILDING_R5_LIBNET ;
|
||||||
|
}
|
||||||
|
|
||||||
BinCommand ping :
|
BinCommand ping :
|
||||||
ping.c
|
ping.c
|
||||||
: libsocket.so libbind.so ;
|
: $(NETWORK_LIBS) ;
|
||||||
|
|
||||||
# Installation -- in the test directory for the time being
|
# Installation -- in the test directory for the time being
|
||||||
OBOSInstall install-networking
|
OBOSInstall install-networking
|
||||||
|
|||||||
@@ -2,11 +2,15 @@ SubDir OBOS_TOP src apps bin route ;
|
|||||||
|
|
||||||
UsePrivateHeaders net ;
|
UsePrivateHeaders net ;
|
||||||
|
|
||||||
|
if ! $(BONE_COMPATIBLE) {
|
||||||
|
SubDirCcFlags -DBUILDING_R5_LIBNET ;
|
||||||
|
}
|
||||||
|
|
||||||
BinCommand <bin>route :
|
BinCommand <bin>route :
|
||||||
keywords.c
|
keywords.c
|
||||||
route.c
|
route.c
|
||||||
show.c
|
show.c
|
||||||
: libsocket.so libbind.so ;
|
: $(NETWORK_LIBS) ;
|
||||||
|
|
||||||
# Installation -- in the test directory for the time being
|
# Installation -- in the test directory for the time being
|
||||||
OBOSInstall install-networking
|
OBOSInstall install-networking
|
||||||
|
|||||||
@@ -2,9 +2,13 @@ SubDir OBOS_TOP src apps bin traceroute ;
|
|||||||
|
|
||||||
UsePrivateHeaders net ;
|
UsePrivateHeaders net ;
|
||||||
|
|
||||||
|
if ! $(BONE_COMPATIBLE) {
|
||||||
|
SubDirCcFlags -DBUILDING_R5_LIBNET ;
|
||||||
|
}
|
||||||
|
|
||||||
BinCommand traceroute :
|
BinCommand traceroute :
|
||||||
traceroute.c
|
traceroute.c
|
||||||
: libsocket.so libbind.so ;
|
: $(NETWORK_LIBS) ;
|
||||||
|
|
||||||
# Installation -- in the test directory for the time being
|
# Installation -- in the test directory for the time being
|
||||||
OBOSInstall install-networking
|
OBOSInstall install-networking
|
||||||
|
|||||||
@@ -51,14 +51,9 @@ LinkSharedOSLibs libmail.so :
|
|||||||
libtextencoding.so
|
libtextencoding.so
|
||||||
tracker
|
tracker
|
||||||
stdc++.r4
|
stdc++.r4
|
||||||
|
$(NETWORK_LIBS)
|
||||||
;
|
;
|
||||||
|
|
||||||
if $(BONE_COMPATIBLE) {
|
|
||||||
LinkSharedOSLibs libmail.so : socket ;
|
|
||||||
} else {
|
|
||||||
LinkSharedOSLibs libmail.so : net ;
|
|
||||||
}
|
|
||||||
|
|
||||||
MakeLocate <develop>libmail.so : $(OBOS_STLIB_DIR) ;
|
MakeLocate <develop>libmail.so : $(OBOS_STLIB_DIR) ;
|
||||||
RelSymLink <develop>libmail.so : libmail.so ;
|
RelSymLink <develop>libmail.so : libmail.so ;
|
||||||
|
|
||||||
|
|||||||
@@ -18,13 +18,7 @@ Server mail_daemon :
|
|||||||
main.cpp
|
main.cpp
|
||||||
;
|
;
|
||||||
|
|
||||||
LinkSharedOSLibs mail_daemon : be libmail.so tracker stdc++.r4 ;
|
LinkSharedOSLibs mail_daemon : be libmail.so tracker stdc++.r4 $(NETWORK_LIBS) ;
|
||||||
|
|
||||||
if $(BONE_COMPATIBLE) {
|
|
||||||
LinkSharedOSLibs mail_daemon : socket ;
|
|
||||||
} else {
|
|
||||||
LinkSharedOSLibs mail_daemon : net ;
|
|
||||||
}
|
|
||||||
|
|
||||||
Package haiku-maildaemon-cvs :
|
Package haiku-maildaemon-cvs :
|
||||||
mail_daemon :
|
mail_daemon :
|
||||||
|
|||||||
@@ -2,6 +2,10 @@ SubDir OBOS_TOP src tests kits net netperf ;
|
|||||||
|
|
||||||
Depends netperf : install_netperf_scripts ;
|
Depends netperf : install_netperf_scripts ;
|
||||||
|
|
||||||
|
if ! $(BONE_COMPATIBLE) {
|
||||||
|
SubDirCcFlags -DBUILDING_R5_LIBNET -Dclose=closesocket ;
|
||||||
|
}
|
||||||
|
|
||||||
SimpleTest netperf :
|
SimpleTest netperf :
|
||||||
netperf.c
|
netperf.c
|
||||||
netsh.c
|
netsh.c
|
||||||
@@ -12,7 +16,7 @@ SimpleTest netperf :
|
|||||||
nettest_xti.c
|
nettest_xti.c
|
||||||
nettest_ipv6.c
|
nettest_ipv6.c
|
||||||
nettest_dns.c
|
nettest_dns.c
|
||||||
: libsocket.so libbind.so
|
: $(NETWORK_LIBS)
|
||||||
;
|
;
|
||||||
|
|
||||||
SimpleTest netserver :
|
SimpleTest netserver :
|
||||||
@@ -25,7 +29,7 @@ SimpleTest netserver :
|
|||||||
nettest_xti.c
|
nettest_xti.c
|
||||||
nettest_ipv6.c
|
nettest_ipv6.c
|
||||||
nettest_dns.c
|
nettest_dns.c
|
||||||
: libsocket.so libbind.so
|
: $(NETWORK_LIBS)
|
||||||
;
|
;
|
||||||
|
|
||||||
OBOSInstall install_netperf_scripts : [ FDirName $(OBOS_TEST_DIR) kits net netperf ] :
|
OBOSInstall install_netperf_scripts : [ FDirName $(OBOS_TEST_DIR) kits net netperf ] :
|
||||||
|
|||||||
Reference in New Issue
Block a user