Changeset 14139


Ignore:
Timestamp:
Aug 5, 2010, 2:07:48 PM (9 years ago)
Author:
gb
Message:

Right Makefile.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/source/lisp-kernel/linuxarm/Makefile

    r14119 r14139  
    1717VPATH = ../
    1818RM = /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
     21AS = as
    2022M4 = 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
     23ASFLAGS = -mfpu=vfpv2
     24M4FLAGS = -DLINUX -DARM
     25CDEFINES = -DLINUX -DARM -D_REENTRANT -D_GNU_SOURCE -DDISABLE_EGC  -DUSE_FUTEX
    2526CDEBUG = -g
    26 COPT = #-O2
     27COPT = -O2
    2728# Once in a while, -Wformat says something useful.  The odds are against that,
    2829# however.
    2930WFORMAT = -Wno-format
    30 PLATFORM_H = platform-darwinarm.h
     31PLATFORM_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.)
     36ld_has_hash_style = $(shell $(LD) --help | grep "hash-style=")
     37ifeq ($(ld_has_hash_style),)
     38HASH_STYLE=
     39else
     40HASH_STYLE="-Wl,--hash-style=sysv"
     41endif
    3142
    3243
     44# Likewise, some versions of GAS may need a "-a32" flag, to force the
     45
     46# output file to be 32-bit compatible.
     47
     48A32 = $(shell ($(AS) --help -v 2>&1 | grep -q -e "-a32") && /bin/echo "-a32")
    3349
    3450.s.o:
    3551        $(M4) $(M4FLAGS) -I../ $< | $(AS) $(A32) $(ASFLAGS) -o $@
    3652.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 $@
    3854
    39 SPOBJ = arm-spentry.o arm-subprims.o
     55SPOBJ = pad.o  arm-spentry.o arm-subprims.o
    4056ASMOBJ = arm-asmutils.o imports.o
    4157
     
    5268        Threads.h arm-exceptions.h $(PLATFORM_H)
    5369
     70# Subprims linked into the kernel ?
     71# Yes:
    5472
    5573KSPOBJ = $(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
     74all:    ../../armcl
    5975
    6076
    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
     82OSLIBS = -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)
    6387
    6488
     
    7094
    7195cclean:
    72         $(RM) -f $(KERNELOBJ) $(DEBUGOBJ) ../../darmcl
     96        $(RM) -f $(KERNELOBJ) $(DEBUGOBJ) ../../ppccl
    7397
    7498clean:  cclean
    7599        $(RM) -f $(SPOBJ)
    76100
    77 strip:  ../../darmcl
    78         strip -g ../../darmcl
     101strip:  ../../ppccl
     102        strip -g ../../ppccl
Note: See TracChangeset for help on using the changeset viewer.