1local architecture = $(TARGET_PACKAGING_ARCH) ; 2 3 4local haikuDevelPackage = haiku_$(architecture)_devel.hpkg ; 5HaikuPackage $(haikuDevelPackage) ; 6 7local arch = $(TARGET_ARCH) ; 8 9# glue code 10AddFilesToPackage develop lib $(architecture) : 11 <src!system!glue!arch!$(arch)!$(architecture)>crti.o 12 <src!system!glue!arch!$(arch)!$(architecture)>crtn.o 13 <src!system!glue!$(architecture)>init_term_dyn.o 14 <src!system!glue!$(architecture)>start_dyn.o 15 <src!system!glue!$(architecture)>haiku_version_glue.o 16 ; 17 18# additional libraries 19local developmentLibs = [ MultiArchDefaultGristFiles libroot_debug.so : revisioned ] ; 20AddFilesToPackage lib $(architecture) : $(developmentLibs) ; 21 22# library symlinks 23local lib ; 24for lib in [ HaikuImageGetSystemLibs ] $(developmentLibs) { 25 AddSymlinkToPackage develop lib $(architecture) 26 : ../../../lib/$(architecture) $(lib:BS) ; 27 local abiVersion = [ on $(lib) return $(HAIKU_LIB_ABI_VERSION) ] ; 28 if $(abiVersion) { 29 local abiVersionedLib = $(lib:BS).$(abiVersion) ; 30 AddSymlinkToPackage develop lib $(architecture) 31 : ../../../lib/$(architecture) $(abiVersionedLib) ; 32 } 33} 34 35# static libraries 36AddFilesToPackage develop lib $(architecture) : 37 <$(architecture)>libc.a 38 <$(architecture)>libcolumnlistview.a 39 <$(architecture)>liblocalestub.a 40 <$(architecture)>libm.a 41 <$(architecture)>libnetservices.a 42 <$(architecture)>libpthread.a 43 <$(architecture)>libshared.a ; 44 45# libnetservices2.a 46if $(HAIKU_CC_IS_LEGACY_GCC_$(architecture)) = 0 { 47 # Modern C++ only; skip on gcc2 48 AddFilesToPackage develop lib $(architecture) : 49 <$(architecture)>libnetservices2.a ; 50} 51 52# the POSIX error code mapper library 53AddFilesToPackage develop lib $(architecture) 54 : libposix_error_mapper.a ; 55 56# ABI independent stuff 57 58# cpp headers 59if $(HAIKU_CC_IS_LEGACY_GCC_$(architecture)) = 1 { 60 # GCC 2 only -- for GCC 4 they come with the gcc package 61 CopyDirectoryToPackage develop headers c++ 62 : [ FDirName $(HAIKU_TOP) headers cpp ] : 2.95.3 ; 63} 64 65 66BuildHaikuPackage $(haikuDevelPackage) : haiku_devel_secondary ; 67