Changeset 4896 in vbox for trunk/src/libs
- Timestamp:
- Sep 19, 2007 9:04:02 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/libs/xpcom18a4/Makefile.kmk
r4864 r4896 14 14 # distribution. VirtualBox OSE is distributed in the hope that it will 15 15 # be useful, but WITHOUT ANY WARRANTY of any kind. 16 # 16 17 17 18 DEPTH = ../../.. … … 34 35 TEMPLATE_XPCOM_CXXFLAGS.profile = -O 35 36 TEMPLATE_XPCOM_CXXFLAGS.darwin = -fpascal-strings -fshort-wchar -fno-common -fno-rtti 37 TEMPLATE_XPCOM_CXXFLAGS.freebsd = -pthread 36 38 TEMPLATE_XPCOM_CXXFLAGS.l4 = -fno-exceptions -nostdinc 37 39 TEMPLATE_XPCOM_CXXFLAGS.linux = -pthread … … 41 43 TEMPLATE_XPCOM_CFLAGS.release = -O 42 44 TEMPLATE_XPCOM_CFLAGS.profile = -O 45 TEMPLATE_XPCOM_CFLAGS.freebsd = -pthread 43 46 TEMPLATE_XPCOM_CFLAGS.l4 = -nostdinc 44 47 TEMPLATE_XPCOM_CFLAGS.linux = -pthread -ansi … … 50 53 TEMPLATE_XPCOM_DEFS.amd64 = HAVE_VA_LIST_AS_ARRAY HAVE_VA_COPY VA_COPY\(a\,b\)=__builtin_va_copy\(a\,b\) 51 54 TEMPLATE_XPCOM_DEFS.darwin = OSTYPE=\"Darwin8.8.1\" OSARCH=\"Darwin\" XP_UNIX=1 XP_MACOSX=1 TARGET_CARBON=1 HAVE_VISIBILITY_ATTRIBUTE=1 DARWIN=1 55 TEMPLATE_XPCOM_DEFS.freebsd = OSTYPE=\"FreeBSD5+\" OSARCH=\"FreeBSD\" XP_UNIX=1 FREEBSD=1 HAVE_VISIBILITY_ATTRIBUTE=1 52 56 TEMPLATE_XPCOM_DEFS.linux = OSTYPE=\"Linux2.6\" OSARCH=\"Linux\" XP_UNIX=1 _GNU_SOURCE HAVE_VISIBILITY_ATTRIBUTE=1 ## @todo LINUX=1 53 57 TEMPLATE_XPCOM_DEFS.l4 = OSTYPE=\"L4ENV\" OSARCH=\"L4\" XP_UNIX=1 L4ENV HAVE_VISIBILITY_ATTRIBUTE=1 … … 126 130 $(TARGET_VBox-xpcom-ipcshared) \ 127 131 $(TARGET_VBoxXPCOM) 132 TEMPLATE_XPCOMEXE_LIBS.freebsd = $(LIB_PTHREAD) 128 133 TEMPLATE_XPCOMEXE_LIBS.linux = dl $(LIB_PTHREAD) 129 134 TEMPLATE_XPCOMEXE_LIBS.l4 = $(LIB_RUNTIME) $(VBOX_GCC_LIBGCC) … … 149 154 TEMPLATE_XPCOMBLDPROG_DEFS.$(BUILD_TARGET_ARCH) = $(TEMPLATE_BLDPROG_DEFS.$(BUILD_TARGET_ARCH)) $(TEMPLATE_XPCOMEXE_DEFS.$(BUILD_TARGET_ARCH)) 150 155 TEMPLATE_XPCOMBLDPROG_CXXFLAGS = -ansi -Wall -Wno-non-virtual-dtor 151 TEMPLATE_XPCOMBLDPROG_CXXFLAGS.linux = -pthread152 156 TEMPLATE_XPCOMBLDPROG_CXXFLAGS.release = -O 153 157 TEMPLATE_XPCOMBLDPROG_CXXFLAGS.profile = -O 158 TEMPLATE_XPCOMBLDPROG_CXXFLAGS.freebsd = -pthread 159 TEMPLATE_XPCOMBLDPROG_CXXFLAGS.linux = -pthread 154 160 TEMPLATE_XPCOMBLDPROG_CFLAGS = -pipe -ansi -Wall -Wno-unused 155 TEMPLATE_XPCOMBLDPROG_CFLAGS.linux = -pthread156 161 TEMPLATE_XPCOMBLDPROG_CFLAGS.release = -O 157 162 TEMPLATE_XPCOMBLDPROG_CFLAGS.profile = -O 163 TEMPLATE_XPCOMBLDPROG_CFLAGS.freebsd = -pthread 164 TEMPLATE_XPCOMBLDPROG_CFLAGS.linux = -pthread 158 165 TEMPLATE_XPCOMBLDPROG_INCS = $(VBOX_PATH_SDK)/include \ 159 166 $(VBOX_PATH_SDK)/include/xpcom \ … … 610 617 _PR_PTHREADS 611 618 VBox-xpcom-nspr_DEFS.freebsd = \ 619 FREEBSD=1 \ 612 620 HAVE_CVAR_BUILT_ON_SEM \ 613 621 _PR_PTHREADS 622 ## @todo filling in the missing stuff, please don't just copy it from linux. 614 623 # FIXME: LINUX should be defined by _linux.cfg 615 624 VBox-xpcom-nspr_DEFS.linux = \ … … 707 716 nsprpub/lib/libc/src/plgetopt.c 708 717 709 VBox-xpcom-nspr_SOURCES.darwin = \ 718 ifeq ($(filter-out darwin freebsd linux netbsd openbsd solaris,$(BUILD_TARGET)),) # unixish 719 VBox-xpcom-nspr_SOURCES += \ 710 720 nsprpub/pr/src/md/unix/unix.c \ 711 721 nsprpub/pr/src/md/unix/unix_errors.c \ … … 714 724 nsprpub/pr/src/md/unix/uxshm.c \ 715 725 nsprpub/pr/src/md/unix/uxwrap.c \ 716 nsprpub/pr/src/md/unix/darwin.c \717 726 nsprpub/pr/src/pthreads/ptio.c \ 718 727 nsprpub/pr/src/pthreads/ptsynch.c \ 719 728 nsprpub/pr/src/pthreads/ptthread.c \ 720 729 nsprpub/pr/src/pthreads/ptmisc.c 730 endif 731 732 VBox-xpcom-nspr_SOURCES.darwin = nsprpub/pr/src/md/unix/darwin.c 721 733 VBox-xpcom-nspr_SOURCES.darwin.x86 = nsprpub/pr/src/md/unix/os_Darwin_x86.s 722 734 723 VBox-xpcom-nspr_SOURCES.l4 = \ 735 VBox-xpcom-nspr_SOURCES.freebsd = nsprpub/pr/src/md/unix/freebsd.c 736 737 VBox-xpcom-nspr_SOURCES.l4 = \ 724 738 nsprpub/pr/src/io/prfile.c /* why not for Linux? */ \ 725 739 nsprpub/pr/src/io/prio.c /* "" "" "" "" */ \ … … 745 759 VBox-xpcom-nspr_SOURCES.l4.amd64 = nsprpub/pr/src/md/unix/os_Linux_x86_64.s 746 760 747 VBox-xpcom-nspr_SOURCES.linux = \ 748 nsprpub/pr/src/md/unix/unix.c \ 749 nsprpub/pr/src/md/unix/unix_errors.c \ 750 nsprpub/pr/src/md/unix/uxproces.c \ 751 nsprpub/pr/src/md/unix/uxrng.c \ 752 nsprpub/pr/src/md/unix/uxshm.c \ 753 nsprpub/pr/src/md/unix/uxwrap.c \ 754 nsprpub/pr/src/md/unix/linux.c \ 755 nsprpub/pr/src/pthreads/ptio.c \ 756 nsprpub/pr/src/pthreads/ptsynch.c \ 757 nsprpub/pr/src/pthreads/ptthread.c \ 758 nsprpub/pr/src/pthreads/ptmisc.c 761 VBox-xpcom-nspr_SOURCES.linux = nsprpub/pr/src/md/unix/linux.c 759 762 VBox-xpcom-nspr_SOURCES.linux.x86 = nsprpub/pr/src/md/unix/os_Linux_x86.s 760 763 VBox-xpcom-nspr_SOURCES.linux.amd64 = nsprpub/pr/src/md/unix/os_Linux_x86_64.s 761 764 762 VBox-xpcom-nspr_SOURCES.os2 765 VBox-xpcom-nspr_SOURCES.os2 = \ 763 766 nsprpub/pr/src/io/prdir.c \ 764 767 nsprpub/pr/src/io/prfile.c \ … … 786 789 nsprpub/pr/src/threads/combined/pruthr.c 787 790 # gcc/emx sources 788 VBox-xpcom-nspr_SOURCES.os2 791 VBox-xpcom-nspr_SOURCES.os2 += \ 789 792 nsprpub/pr/src/md/os2/os2emx.s \ 790 793 nsprpub/pr/src/md/os2/os2vaclegacy.s … … 793 796 # nsprpub/pr/src/md/os2/os2vacpp.asm 794 797 795 VBox-xpcom-nspr_SOURCES.solaris = \ 796 nsprpub/pr/src/md/unix/unix.c \ 797 nsprpub/pr/src/md/unix/unix_errors.c \ 798 nsprpub/pr/src/md/unix/uxproces.c \ 799 nsprpub/pr/src/md/unix/uxrng.c \ 800 nsprpub/pr/src/md/unix/uxshm.c \ 801 nsprpub/pr/src/md/unix/uxwrap.c \ 802 nsprpub/pr/src/md/unix/solaris.c \ 803 nsprpub/pr/src/pthreads/ptio.c \ 804 nsprpub/pr/src/pthreads/ptsynch.c \ 805 nsprpub/pr/src/pthreads/ptthread.c \ 806 nsprpub/pr/src/pthreads/ptmisc.c 798 VBox-xpcom-nspr_SOURCES.solaris = nsprpub/pr/src/md/unix/solaris.c 807 799 VBox-xpcom-nspr_SOURCES.solaris.x86 = nsprpub/pr/src/md/unix/os_SunOS_x86.s 808 800 VBox-xpcom-nspr_SOURCES.solaris.amd64 = nsprpub/pr/src/md/unix/os_SunOS_amd64.s … … 978 970 VBox-xpcom-xptcall_SOURCES.darwin.x86 = xpcom/reflect/xptcall/src/md/unix/xptcinvoke_unixish_x86.cpp \ 979 971 xpcom/reflect/xptcall/src/md/unix/xptcstubs_unixish_x86.cpp 972 VBox-xpcom-xptcall_SOURCES.freebsd.x86 = xpcom/reflect/xptcall/src/md/unix/xptcinvoke_gcc_x86_unix.cpp \ 973 xpcom/reflect/xptcall/src/md/unix/xptcstubs_gcc_x86_unix.cpp 974 VBox-xpcom-xptcall_SOURCES.freebsd.amd64= xpcom/reflect/xptcall/src/md/unix/xptcinvoke_x86_64_linux.cpp \ 975 xpcom/reflect/xptcall/src/md/unix/xptcstubs_x86_64_linux.cpp ## ??? 980 976 VBox-xpcom-xptcall_SOURCES.linux.x86 = xpcom/reflect/xptcall/src/md/unix/xptcinvoke_gcc_x86_unix.cpp \ 981 977 xpcom/reflect/xptcall/src/md/unix/xptcstubs_gcc_x86_unix.cpp … … 1062 1058 $(TARGET_VBox-xpcom-nspr) 1063 1059 1064 VBoxXPCOM_LDFLAGS.linux = -Wl,--whole-archive \ 1060 ifeq ($(filter-out freebsd l4 linux netbsd openbsd,$(BUILD_TARGET)),) # gnu ld. 1061 VBoxXPCOM_LDFLAGS = -Wl,--whole-archive \ 1065 1062 $(TARGET_VBox-xpcom-typelib) \ 1066 1063 $(TARGET_VBox-xpcom-string) \ … … 1075 1072 $(TARGET_VBox-xpcom-nspr) \ 1076 1073 -Wl,--no-whole-archive 1074 endif 1075 1077 1076 VBoxXPCOM_LDFLAGS.solaris = -Wl,-z,allextract \ 1078 1077 $(TARGET_VBox-xpcom-typelib) \ … … 1173 1172 ipc/ipcd/client/src/ipcModuleFactory.cpp \ 1174 1173 ipc/ipcd/extensions/dconnect/src/ipcDConnectService.cpp 1175 VBoxXPCOMIPCC_SOURCES.win = \ 1174 ifeq ($(BUILD_TARGET),win) 1175 VBoxXPCOMIPCC_SOURCES += \ 1176 1176 ipc/ipcd/client/src/ipcConnectionWin.cpp 1177 VBoxXPCOMIPCC_SOURCES.darwin = \ 1177 else 1178 VBoxXPCOMIPCC_SOURCES += \ 1178 1179 ipc/ipcd/client/src/ipcConnectionUnix.cpp 1179 VBoxXPCOMIPCC_SOURCES.l4 = \ 1180 ipc/ipcd/client/src/ipcConnectionUnix.cpp 1181 VBoxXPCOMIPCC_SOURCES.linux = \ 1182 ipc/ipcd/client/src/ipcConnectionUnix.cpp 1183 VBoxXPCOMIPCC_SOURCES.os2 = \ 1184 ipc/ipcd/client/src/ipcConnectionUnix.cpp 1185 VBoxXPCOMIPCC_SOURCES.solaris = \ 1186 ipc/ipcd/client/src/ipcConnectionUnix.cpp 1180 endif 1187 1181 VBoxXPCOMIPCC_LDFLAGS.darwin = -install_name @executable_path/components/VBoxXPCOMIPCC.dylib 1188 1182 VBoxXPCOMIPCC_LIBS = \ … … 1202 1196 ipc/ipcd/daemon/src/ipcModuleReg.cpp \ 1203 1197 ipc/ipcd/daemon/src/ipcCommandModule.cpp 1204 VBoxXPCOMIPCD_SOURCES.win = \ 1198 ifeq ($(BUILD_TARGET),win) 1199 VBoxXPCOMIPCD_SOURCES += \ 1205 1200 ipc/ipcd/daemon/src/ipcdWin.cpp 1206 VBoxXPCOMIPCD_SOURCES.darwin = \ 1201 else 1202 VBoxXPCOMIPCD_SOURCES += \ 1207 1203 ipc/ipcd/daemon/src/ipcdUnix.cpp 1208 VBoxXPCOMIPCD_SOURCES.l4 = \ 1209 ipc/ipcd/daemon/src/ipcdUnix.cpp 1210 VBoxXPCOMIPCD_SOURCES.linux = \ 1211 ipc/ipcd/daemon/src/ipcdUnix.cpp 1212 VBoxXPCOMIPCD_SOURCES.os2 = \ 1213 ipc/ipcd/daemon/src/ipcdUnix.cpp 1214 VBoxXPCOMIPCD_SOURCES.solaris = \ 1215 ipc/ipcd/daemon/src/ipcdUnix.cpp 1204 endif 1216 1205 1217 1206 #
Note:
See TracChangeset
for help on using the changeset viewer.