Changeset 14139
- Timestamp:
- Aug 5, 2010, 7:07:48 AM (14 years ago)
- File:
-
- 1 edited
-
trunk/source/lisp-kernel/linuxarm/Makefile (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/source/lisp-kernel/linuxarm/Makefile
r14119 r14139 17 17 VPATH = ../ 18 18 RM = /bin/rm 19 AS = /Developer/Platforms/iPhoneOS.platform/Developer/usr/libexec/gcc/darwin/arm/as 19 # Versions of GNU as >= 2.9.1 all seem to work 20 # AS = gas-2.9.1 21 AS = as 20 22 M4 = m4 21 ASFLAGS = -arch armv7 22 M4FLAGS = -DDARWIN -DARM 23 CC = /Developer/Platforms/iPhoneOS.platform/usr/bin/llvm-gcc-4.2 24 CDEFINES = -isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.2.sdk/ -DDARWIN -DARM -D_REENTRANT -D_GNU_SOURCE -DDISABLE_EGC -DGC_INTEGRITY_CHECKING -arch armv7 23 ASFLAGS = -mfpu=vfpv2 24 M4FLAGS = -DLINUX -DARM 25 CDEFINES = -DLINUX -DARM -D_REENTRANT -D_GNU_SOURCE -DDISABLE_EGC -DUSE_FUTEX 25 26 CDEBUG = -g 26 COPT = #-O227 COPT = -O2 27 28 # Once in a while, -Wformat says something useful. The odds are against that, 28 29 # however. 29 30 WFORMAT = -Wno-format 30 PLATFORM_H = platform-darwinarm.h 31 PLATFORM_H = platform-linuxarm.h 32 33 # If the linker supports a "--hash-style=" option, use traditional 34 # Sysv hash tables. (If it doesn't support that option, assume 35 # that traditional hash tables will be used by default.) 36 ld_has_hash_style = $(shell $(LD) --help | grep "hash-style=") 37 ifeq ($(ld_has_hash_style),) 38 HASH_STYLE= 39 else 40 HASH_STYLE="-Wl,--hash-style=sysv" 41 endif 31 42 32 43 44 # Likewise, some versions of GAS may need a "-a32" flag, to force the 45 46 # output file to be 32-bit compatible. 47 48 A32 = $(shell ($(AS) --help -v 2>&1 | grep -q -e "-a32") && /bin/echo "-a32") 33 49 34 50 .s.o: 35 51 $(M4) $(M4FLAGS) -I../ $< | $(AS) $(A32) $(ASFLAGS) -o $@ 36 52 .c.o: 37 $(CC) - arch arm -include ../$(PLATFORM_H) -c $< $(CDEFINES) $(CDEBUG) $(COPT) -marm $(WFORMAT) -o $@53 $(CC) -include ../$(PLATFORM_H) -c $< $(CDEFINES) $(CDEBUG) $(COPT) -marm $(WFORMAT) -o $@ 38 54 39 SPOBJ = arm-spentry.o arm-subprims.o55 SPOBJ = pad.o arm-spentry.o arm-subprims.o 40 56 ASMOBJ = arm-asmutils.o imports.o 41 57 … … 52 68 Threads.h arm-exceptions.h $(PLATFORM_H) 53 69 70 # Subprims linked into the kernel ? 71 # Yes: 54 72 55 73 KSPOBJ = $(SPOBJ) 56 all: ../../darmcl 57 58 OSLIBS = /Developer/Platforms/iPhoneOS.platform/Developer/usr/llvm-gcc-4.2/lib/gcc/arm-apple-darwin10/4.2.1/v6/libgcc.a -lSystem /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.2.sdk/usr/lib/crt1.o /Developer/Platforms/iPhoneOS.platform/DeviceSupport/3.1.3/Symbols/usr/lib/libgcc_s.1.dylib 74 all: ../../armcl 59 75 60 76 61 ../../darmcl: $(KSPOBJ) $(KERNELOBJ) $(DEBUGOBJ) 62 $(LD) -pagezero_size 0x8000 $(KSPOBJ) -L/Developer/Platforms/iPhoneOS.platform/DeviceSupport/3.1.3/Symbols/usr/lib -arch armv7 -o $@ $(KERNELOBJ) $(DEBUGOBJ) $(OSLIBS) 77 # No: 78 79 # KSPOBJ= 80 # all: ../../ppccl ../../subprims.so 81 82 OSLIBS = -ldl -lm -lpthread 83 84 85 ../../armcl: $(KSPOBJ) $(KERNELOBJ) $(DEBUGOBJ) 86 $(CC) $(CDEBUG) -Wl,--export-dynamic $(HASH_STYLE) -o $@ -T ./armlinux.x $(KSPOBJ) $(KERNELOBJ) $(DEBUGOBJ) $(OSLIBS) 63 87 64 88 … … 70 94 71 95 cclean: 72 $(RM) -f $(KERNELOBJ) $(DEBUGOBJ) ../../ darmcl96 $(RM) -f $(KERNELOBJ) $(DEBUGOBJ) ../../ppccl 73 97 74 98 clean: cclean 75 99 $(RM) -f $(SPOBJ) 76 100 77 strip: ../../ darmcl78 strip -g ../../ darmcl101 strip: ../../ppccl 102 strip -g ../../ppccl
Note:
See TracChangeset
for help on using the changeset viewer.
