1# Note that the macros are not used for the install target any more with the 2# change to the install(1) program. Edit the install commands. 3 4ifneq "" "$(wildcard /bin/mkdirs)" 5 MKDIRS = /bin/mkdirs 6else 7 MKDIRS = /bin/mkdir -p 8endif 9 10FILES = mach-o/ldsyms.h mach-o/reloc.h \ 11 mach-o/nlist.h mach-o/stab.h mach-o/loader.h mach-o/fat.h \ 12 mach-o/dyld_debug.h mach-o/arch.h mach-o/gmon.h mach-o/ranlib.h \ 13 mach-o/swap.h mach-o/getsect.h mach-o/i386/swap.h \ 14 mach-o/ppc/swap.h mach-o/ppc/reloc.h mach-o/x86_64/reloc.h \ 15 mach-o/dyld.h mach-o/dyld_gdb.h mach-o/arm/reloc.h 16 17LOCFILES = mach-o/rld_state.h mach-o/rld.h mach-o/sarld.h mach-o/kld.h \ 18 mach-o/redo_prebinding.h \ 19 mach-o/i860/swap.h mach-o/i860/reloc.h \ 20 mach-o/hppa/swap.h mach-o/hppa/reloc.h \ 21 mach-o/m88k/swap.h mach-o/m88k/reloc.h \ 22 mach-o/m68k/swap.h \ 23 mach-o/sparc/swap.h mach-o/sparc/reloc.h \ 24 cbt/libsyminfo.h mach-o/dyld_priv.h 25 26# Note that OTHER_SRCS do NOT get installed 27GAS_OTHER_SRCS = stuff/bytesex.h stuff/bool.h stuff/rnd.h stuff/errors.h \ 28 stuff/openstep_mach.h opcode/arm.h 29OTHER_SRCS = notes gnu/symseg.h \ 30 stuff/allocate.h stuff/arch.h stuff/execute.h \ 31 stuff/ofile.h stuff/lto.h stuff/llvm.h \ 32 stuff/hash_string.h stuff/breakout.h stuff/best_arch.h \ 33 stuff/hppa.h stuff/reloc.h stuff/vm_flush_cache.h \ 34 stuff/print.h stuff/version_number.h stuff/crc32.h sys/gmon.h \ 35 stuff/seg_addr_table.h stuff/dylib_table.h \ 36 stuff/SymLoc.h stuff/dylib_roots.h stuff/guess_short_name.h \ 37 stuff/macosx_deployment_target.h stuff/symbol_list.h \ 38 stuff/symbol.h stuff/unix_standard_mode.h \ 39 coff/base_relocs.h coff/bytesex.h coff/ms_dos_stub.h \ 40 coff/filehdr.h coff/aouthdr.h coff/scnhdr.h coff/syment.h \ 41 coff/debug_directory.h elf/dwarf2.h llvm-c/Disassembler.h \ 42 $(GAS_OTHER_SRCS) 43 44ENCUMBERED_SRCS = gnu/a.out.h gnu/exec.h 45 46# Note that MISSING_SRCS are those may not be on all build machines 47GAS_MISSING_SRCS = mach/m68k/thread_status.h \ 48 mach/i860/thread_status.h \ 49 mach/m88k/thread_status.h \ 50 architecture/m88k/fp_regs.h \ 51 architecture/m88k/reg_help.h \ 52 architecture/nrw/reg_help.h \ 53 architecture/nrw/macro_help.h \ 54 mach/hppa/thread_status.h \ 55 mach/sparc/thread_status.h \ 56 architecture/sparc/reg.h \ 57 mach/arm/thread_status.h \ 58 mach/arm/thread_state.h \ 59 mach/arm/_structs.h \ 60 mach/ppc/thread_status.h \ 61 mach/ppc/_structs.h 62 63MISSING_SRCS = mach/machine.h \ 64 architecture/i386/fpu.h architecture/i386/frame.h \ 65 standalone/libsa.h \ 66 $(GAS_MISSING_SRCS) 67 68nextstep_INCDIR = /NextDeveloper/Headers 69nextstep_LOCINCDIR = /LocalDeveloper/Headers 70 71teflon_INCDIR = /System/Library/Frameworks/System.framework/Versions/B/Headers 72teflon_LOCINCDIR = /System/Library/Frameworks/System.framework/Versions/B/PrivateHeaders 73 74ifeq "macos" "$(RC_OS)" 75 macos_INCDIR := $(shell if [ "$(RC_RELEASE)" = "Beaker" ] || \ 76 [ "$(RC_RELEASE)" = "Bunsen" ] || \ 77 [ "$(RC_RELEASE)" = "Gonzo" ] || \ 78 [ "$(RC_RELEASE)" = "Kodiak" ]; then \ 79 echo /System/Library/Frameworks/System.framework/Versions/B/Headers; \ 80 else echo /usr/include; \ 81 fi; ) 82 macos_LOCINCDIR := $(shell if [ "$(RC_RELEASE)" = "Beaker" ] || \ 83 [ "$(RC_RELEASE)" = "Bunsen" ] || \ 84 [ "$(RC_RELEASE)" = "Gonzo" ] || \ 85 [ "$(RC_RELEASE)" = "Kodiak" ]; then \ 86 echo /System/Library/Frameworks/System.framework/Versions/B/PrivateHeaders; \ 87 else echo /usr/local/include; \ 88 fi; ) 89else 90 macos_INCDIR = /System/Library/Frameworks/System.framework/Versions/B/Headers 91 macos_LOCINCDIR = /System/Library/Frameworks/System.framework/Versions/B/PrivateHeaders 92endif 93 94SRC_FILES = Makefile $(FILES) $(LOCFILES) $(OTHER_SRCS) $(MISSING_SRCS) 95GAS_SRC_FILES = Makefile $(GAS_OTHER_SRCS) $(GAS_MISSING_SRCS) 96ENCUMBERED_SRC_FILES = $(SRC_FILES) $(ENCUMBERED_SRCS) 97 98installsrc: 99 $(MKDIRS) $(SRCROOT) 100 chmod 755 $(SRCROOT) 101 gnutar cf - $(ENCUMBERED_SRC_FILES) | (cd $(SRCROOT); gnutar xf -) 102 103installGASsrc: 104 $(MKDIRS) $(SRCROOT) 105 chmod 755 $(SRCROOT) 106 gnutar cf - $(GAS_SRC_FILES) | (cd $(SRCROOT); gnutar xf -) 107 108install: dirs $(RC_OS)_install 109 110teflon_install macos_install: common_install 111 112nextstep_install: common_install 113 cd mach-o; \ 114 install -c -m 444 ${IFLAGS} gmon.h \ 115 ${DSTROOT}${$(RC_OS)_INCDIR}/mach-o 116 117common_install: 118 cd mach-o; \ 119 install -c -m 444 ${IFLAGS} arch.h ldsyms.h reloc.h \ 120 stab.h loader.h fat.h swap.h getsect.h nlist.h \ 121 ranlib.h ${DSTROOT}${$(RC_OS)_INCDIR}/mach-o 122 if [ $(OLD_DYLD_STUFF) ]; \ 123 then \ 124 cd mach-o; install -c -m 444 ${IFLAGS} dyld.h dyld_debug.h \ 125 ${DSTROOT}${$(RC_OS)_INCDIR}/mach-o ; \ 126 fi 127 cd mach-o/i386; \ 128 install -c -m 444 ${IFLAGS} swap.h \ 129 ${DSTROOT}${$(RC_OS)_INCDIR}/mach-o/i386 130 cd mach-o/ppc; \ 131 install -c -m 444 ${IFLAGS} reloc.h swap.h \ 132 ${DSTROOT}${$(RC_OS)_INCDIR}/mach-o/ppc 133 cd mach-o/x86_64; \ 134 install -c -m 444 ${IFLAGS} reloc.h \ 135 ${DSTROOT}${$(RC_OS)_INCDIR}/mach-o/x86_64 136 cd mach-o/arm; \ 137 install -c -m 444 ${IFLAGS} reloc.h \ 138 ${DSTROOT}${$(RC_OS)_INCDIR}/mach-o/arm 139 cd mach-o/m68k; \ 140 install -c -m 444 ${IFLAGS} swap.h \ 141 ${DSTROOT}${$(RC_OS)_LOCINCDIR}/mach-o/m68k 142 cd mach-o/sparc; \ 143 install -c -m 444 ${IFLAGS} reloc.h swap.h \ 144 ${DSTROOT}${$(RC_OS)_LOCINCDIR}/mach-o/sparc 145 cd mach-o/hppa; \ 146 install -c -m 444 ${IFLAGS} reloc.h swap.h \ 147 ${DSTROOT}${$(RC_OS)_LOCINCDIR}/mach-o/hppa 148 cd mach-o/i860; \ 149 install -c -m 444 ${IFLAGS} reloc.h swap.h \ 150 ${DSTROOT}${$(RC_OS)_LOCINCDIR}/mach-o/i860 151 cd mach-o/m88k; \ 152 install -c -m 444 ${IFLAGS} reloc.h swap.h \ 153 ${DSTROOT}${$(RC_OS)_LOCINCDIR}/mach-o/m88k 154 cd mach-o; \ 155 install -c -m 444 ${IFLAGS} rld.h rld_state.h \ 156 ${DSTROOT}${$(RC_OS)_LOCINCDIR}/mach-o 157 if [ $(OLD_DYLD_STUFF) ]; \ 158 then \ 159 cd mach-o; install -c -m 444 ${IFLAGS} dyld_gdb.h dyld_priv.h \ 160 ${DSTROOT}${$(RC_OS)_LOCINCDIR}/mach-o ; \ 161 fi 162 cd mach-o; \ 163 install -c -m 444 ${IFLAGS} sarld.h kld.h redo_prebinding.h \ 164 ${DSTROOT}${$(RC_OS)_LOCINCDIR}/mach-o 165 cd stuff; \ 166 install -c -m 444 ${IFLAGS} bool.h \ 167 ${DSTROOT}${$(RC_OS)_LOCINCDIR}/dyld 168 cd cbt; \ 169 install -c -m 444 ${IFLAGS} libsyminfo.h \ 170 ${DSTROOT}${$(RC_OS)_LOCINCDIR}/cbt 171 172dirs: 173 $(MKDIRS) ${DSTROOT}${$(RC_OS)_INCDIR}/mach-o/i386 174 $(MKDIRS) ${DSTROOT}${$(RC_OS)_INCDIR}/mach-o/ppc 175 $(MKDIRS) ${DSTROOT}${$(RC_OS)_INCDIR}/mach-o/x86_64 176 $(MKDIRS) ${DSTROOT}${$(RC_OS)_INCDIR}/mach-o/arm 177 $(MKDIRS) ${DSTROOT}${$(RC_OS)_LOCINCDIR}/mach-o/m68k 178 $(MKDIRS) ${DSTROOT}${$(RC_OS)_LOCINCDIR}/mach-o/sparc 179 $(MKDIRS) ${DSTROOT}${$(RC_OS)_LOCINCDIR}/mach-o/hppa 180 $(MKDIRS) ${DSTROOT}${$(RC_OS)_LOCINCDIR}/mach-o/i860 181 $(MKDIRS) ${DSTROOT}${$(RC_OS)_LOCINCDIR}/mach-o/m88k 182 $(MKDIRS) ${DSTROOT}${$(RC_OS)_LOCINCDIR}/dyld 183 $(MKDIRS) ${DSTROOT}${$(RC_OS)_LOCINCDIR}/cbt 184 185depend: 186 187clean shlib_clean: 188 189all: 190