source: branches/arm64/lisp-kernel/linuxarm64/Makefile @ 15550

Last change on this file since 15550 was 15550, checked in by gb, 8 years ago

Move along, nothing to see here. Honest.
Some the files (those that aren't missing ...) are empty; there's very
little in the way of actual ARMv8 code here, and there'll need to be
a lot more before this is even worth talking about.

File size: 2.7 KB
Line 
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
16SVN_REVISION := "$(shell svnversion || echo unknown)"
17
18# See <http://people.debian.org/~wookey/bootstrap.html>
19CROSS=aarch64-linux-gnu-
20VPATH = ../
21RM = /bin/rm
22AS = ${CROSS}as
23CC = ${CROSS}gcc
24M4 = m4
25ASFLAGS = 
26M4FLAGS = -DLINUX -DARM64
27CDEFINES = -DLINUX -DARM64 -D_REENTRANT -D_GNU_SOURCE -DUSE_FUTEX -DSVN_REVISION=$(SVN_REVISION)
28CDEBUG = -g
29COPT = -O2
30# Once in a while, -Wformat says something useful.  The odds are against that,
31# however.
32WFORMAT = -Wno-format
33PLATFORM_H = platform-linuxarm64.h
34
35
36# If the linker supports a "--hash-style=" option, use traditional
37# Sysv hash tables.  (If it doesn't support that option, assume
38# that traditional hash tables will be used by default.)
39ld_has_hash_style = $(shell $(LD) --help | grep "hash-style=")
40ifeq ($(ld_has_hash_style),)
41HASH_STYLE=
42else
43HASH_STYLE="-Wl,--hash-style=sysv"
44endif
45
46
47
48.s.o:
49        $(M4) $(M4FLAGS) -I../ $< | $(AS)  $(ASFLAGS) -o $@
50.c.o:
51        $(CC) -include ../$(PLATFORM_H) -c $< $(CDEFINES) $(CDEBUG) $(COPT)   $(WFORMAT)  -o $@
52
53SPOBJ = pad.o  arm64-spentry.o
54ASMOBJ = arm64-asmutils.o imports.o
55
56COBJ  = pmcl-kernel.o gc-common.o arm64-gc.o bits.o  arm64-exceptions.o \
57        image.o thread_manager.o lisp-debug.o memory.o unix-calls.o
58
59DEBUGOBJ = lispdcmd.o plprint.o plsym.o albt.o arm_print.o
60KERNELOBJ= $(COBJ) arm64-asmutils.o  imports.o
61
62SPINC = lisp.s m4macros.m4 arm64-constants.s arm64-macros.s errors.s arm64-uuo.s \
63        lisp_globals.s
64
65CHEADERS = area.h bits.h arm64-constants.h lisp-errors.h gc.h lisp.h \
66        lisp-exceptions.h lisp_globals.h macros.h memprotect.h image.h \
67        threads.h arm64-exceptions.h $(PLATFORM_H)
68
69# Subprims linked into the kernel ?
70# Yes:
71
72KSPOBJ = $(SPOBJ)
73all:    ../../armcl64
74
75
76# No:
77
78# KSPOBJ=
79# all:  ../../armcl64 ../../subprims.so
80
81OSLIBS = -ldl -lm -lpthread -lrt
82
83
84../../armcl64:  $(KSPOBJ) $(KERNELOBJ) $(DEBUGOBJ)
85        $(CC)  $(CDEBUG)  -Wl,--export-dynamic $(HASH_STYLE) -mfloat-abi=$(FLOAT_ABI) -o $@ -T ./armlinux.x $(KSPOBJ) $(KERNELOBJ) $(DEBUGOBJ) -Wl,--no-as-needed $(OSLIBS)
86
87
88$(SPOBJ): $(SPINC)
89$(ASMOBJ): $(SPINC)
90$(COBJ): $(CHEADERS)
91$(DEBUGOBJ): $(CHEADERS) lispdcmd.h
92
93
94cclean:
95        $(RM) -f $(KERNELOBJ) $(DEBUGOBJ) ../../armcl
96
97clean:  cclean
98        $(RM) -f $(SPOBJ)
99
100strip:  ../../armcl
101        strip -g ../../armcl
Note: See TracBrowser for help on using the repository browser.