source: branches/arm/lisp-kernel/darwinarm/Makefile @ 13958

Last change on this file since 13958 was 13958, checked in by gb, 9 years ago

Get the kernel to compile/link/run enough to complain about a missing
image on ios.

File size: 2.6 KB
RevLine 
[13923]1#
2#   Copyright (C) 2010 Clozure Associates
3#   This file is part of Clozure CL. 
4#
5#   Clozure CL is licensed under the terms of the Lisp Lesser GNU Public
6#   License , known as the LLGPL and distributed with Clozure CL as the
7#   file "LICENSE".  The LLGPL consists of a preamble and the LGPL,
8#   which is distributed with Clozure CL as the file "LGPL".  Where these
9#   conflict, the preamble takes precedence. 
10#
11#   Clozure CL is referenced in the preamble as the "LIBRARY."
12#
13#   The LLGPL is also available online at
14#   http://opensource.franz.com/preamble.html
15
16
17VPATH = ../
18RM = /bin/rm
19AS = /Developer/Platforms/iPhoneOS.platform/Developer/usr/libexec/gcc/darwin/arm/as
20M4 = m4
[13958]21ASFLAGS = -arch armv6
[13923]22M4FLAGS = -DDARWIN -DARM
[13958]23CC = /Developer/Platforms/iPhoneOS.platform/usr/bin/llvm-gcc-4.2
24CDEFINES = -isysroot /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.2.sdk/ -DDARWIN -DARM -D_REENTRANT -D_GNU_SOURCE -DDISABLE_EGC -DGC_INTEGRITY_CHECKING -arch armv6
[13923]25CDEBUG = -g
26COPT = #-O2
27# Once in a while, -Wformat says something useful.  The odds are against that,
28# however.
29WFORMAT = -Wno-format
30PLATFORM_H = platform-darwinarm.h
31
32
33
34.s.o:
35        $(M4) $(M4FLAGS) -I../ $< | $(AS) $(A32) $(ASFLAGS) -o $@
36.c.o:
[13958]37        $(CC) -arch arm -include ../$(PLATFORM_H) -c $< $(CDEFINES) $(CDEBUG) $(COPT) -marm $(WFORMAT)  -o $@
[13923]38
[13958]39SPOBJ = arm-spentry.o arm-subprims.o
[13923]40ASMOBJ = arm-asmutils.o imports.o
41
42COBJ  = pmcl-kernel.o gc-common.o arm-gc.o bits.o  arm-exceptions.o \
43        image.o thread_manager.o lisp-debug.o memory.o unix-calls.o
44
45DEBUGOBJ = lispdcmd.o plprint.o plsym.o albt.o arm_print.o
46KERNELOBJ= $(COBJ) arm-asmutils.o  imports.o
47
48SPINC = lisp.s m4macros.m4 arm-constants.s arm-macros.s errors.s arm-uuo.s
49
50CHEADERS = area.h bits.h arm-constants.h lisp-errors.h gc.h lisp.h \
51        lisp-exceptions.h lisp_globals.h macros.h memprotect.h image.h \
52        Threads.h arm-exceptions.h $(PLATFORM_H)
53
54
55KSPOBJ = $(SPOBJ)
[13958]56all:    ../../darmcl
[13923]57
[13958]58OSLIBS = /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
[13923]59
60
[13958]61../../darmcl:   $(KSPOBJ) $(KERNELOBJ) $(DEBUGOBJ)
62        $(LD) -pagezero_size 0x8000 $(KSPOBJ) -L/Developer/Platforms/iPhoneOS.platform/DeviceSupport/3.1.3/Symbols/usr/lib  -arch armv6 -o $@   $(KERNELOBJ) $(DEBUGOBJ) $(OSLIBS)
[13923]63
64
65$(SPOBJ): $(SPINC)
66$(ASMOBJ): $(SPINC)
67$(COBJ): $(CHEADERS)
68$(DEBUGOBJ): $(CHEADERS) lispdcmd.h
69
70
71cclean:
[13958]72        $(RM) -f $(KERNELOBJ) $(DEBUGOBJ) ../../darmcl
[13923]73
74clean:  cclean
75        $(RM) -f $(SPOBJ)
76
[13958]77strip:  ../../darmcl
78        strip -g ../../darmcl
Note: See TracBrowser for help on using the repository browser.