1local architecture = $(HAIKU_PACKAGING_ARCHS[1]) ; 2 3 4local haikuDevelPackage = haiku_devel.hpkg ; 5HaikuPackage $(haikuDevelPackage) ; 6 7local arch = $(TARGET_ARCH) ; 8 9# glue code 10AddFilesToPackage develop lib : 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# kernel 19AddFilesToPackage develop lib : kernel.so : _KERNEL_ ; 20 21# additional libraries 22local developmentLibs = 23 <revisioned>libroot_debug.so 24 ; 25 26AddFilesToPackage lib : $(developmentLibs) ; 27 28# library symlinks 29local lib ; 30for lib in [ HaikuImageGetSystemLibs ] $(developmentLibs) { 31 AddSymlinkToPackage develop lib : ../../lib $(lib:BS) ; 32 local abiVersion = [ on $(lib) return $(HAIKU_LIB_ABI_VERSION) ] ; 33 if $(abiVersion) { 34 local abiVersionedLib = $(lib:BS).$(abiVersion) ; 35 AddSymlinkToPackage develop lib 36 : ../../lib $(abiVersionedLib) ; 37 } 38} 39 40# static libraries 41AddFilesToPackage develop lib : 42 libc.a libcolumnlistview.a 43 <$(architecture)>liblocalestub.a 44 libm.a libnetservices.a 45 libpthread.a libprint.a libprintutils.a 46 <$(architecture)>libshared.a ; 47 48# libnetservices2.a 49if $(HAIKU_CC_IS_LEGACY_GCC_$(architecture)) = 0 { 50 # Modern C++ only; skip on gcc2 51 AddFilesToPackage develop lib : 52 <$(architecture)>libnetservices2.a ; 53} 54 55# the POSIX error code mapper library 56AddFilesToPackage develop lib : libposix_error_mapper.a ; 57 58# ABI independent stuff 59 60# directory attributes 61AddDirectoryToPackage develop : system-develop.rdef ; 62 63 64# headers 65AddHeaderDirectoryToPackage config ; 66AddHeaderDirectoryToPackage glibc ; 67AddHeaderDirectoryToPackage libs alm ; 68AddHeaderDirectoryToPackage libs glut GL ; 69AddHeaderDirectoryToPackage os ; 70AddHeaderDirectoryToPackage posix ; 71 72# private headers 73AddHeaderDirectoryToPackage private ; 74CopyDirectoryToPackage develop headers private libs compat 75 : [ FDirName $(HAIKU_TOP) src libs compat freebsd_network ] 76 : : -x *.c -x *.cpp -x *.awk -x Jamfile -x miidevs -x usbdevs ; 77CopyDirectoryToPackage develop headers private libs compat 78 : [ FDirName $(HAIKU_TOP) src libs compat freebsd_wlan ] 79 : : -x *.c -x Jamfile ; 80 81# create be -> os symlink for now 82AddSymlinkToPackage develop headers : os : be ; 83 84# BSD and GNU compatibility headers 85AddHeaderDirectoryToPackage compatibility bsd : bsd ; 86AddHeaderDirectoryToPackage compatibility gnu : gnu ; 87 88# cpp headers 89if $(HAIKU_CC_IS_LEGACY_GCC_$(architecture)) = 1 { 90 # GCC 2 only -- for GCC 4 they come with the gcc package 91 CopyDirectoryToPackage develop headers c++ 92 : [ FDirName $(HAIKU_TOP) headers cpp ] : 2.95.3 ; 93} 94 95 96# Deskbar menu symlinks 97AddSymlinkToPackage data deskbar menu Applications 98 : ../../../../apps/Debugger : Debugger ; 99 100# Debugging tools 101SEARCH on leak_analyser.sh = [ FDirName $(HAIKU_TOP) src bin ] ; 102AddFilesToPackage bin : leak_analyser.sh ; 103 104BuildHaikuPackage $(haikuDevelPackage) : haiku_devel ; 105