xref: /aoo42x/main/solenv/inc/unxfbsdr.mk (revision 7a46fbe4)
1*7a46fbe4Spfg#**************************************************************
2*7a46fbe4Spfg#
3*7a46fbe4Spfg#  Licensed to the Apache Software Foundation (ASF) under one
4*7a46fbe4Spfg#  or more contributor license agreements.  See the NOTICE file
5*7a46fbe4Spfg#  distributed with this work for additional information
6*7a46fbe4Spfg#  regarding copyright ownership.  The ASF licenses this file
7*7a46fbe4Spfg#  to you under the Apache License, Version 2.0 (the
8*7a46fbe4Spfg#  "License"); you may not use this file except in compliance
9*7a46fbe4Spfg#  with the License.  You may obtain a copy of the License at
10*7a46fbe4Spfg#
11*7a46fbe4Spfg#    http://www.apache.org/licenses/LICENSE-2.0
12*7a46fbe4Spfg#
13*7a46fbe4Spfg#  Unless required by applicable law or agreed to in writing,
14*7a46fbe4Spfg#  software distributed under the License is distributed on an
15*7a46fbe4Spfg#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*7a46fbe4Spfg#  KIND, either express or implied.  See the License for the
17*7a46fbe4Spfg#  specific language governing permissions and limitations
18*7a46fbe4Spfg#  under the License.
19*7a46fbe4Spfg#
20*7a46fbe4Spfg#**************************************************************
21*7a46fbe4Spfg
22*7a46fbe4Spfg
23*7a46fbe4Spfg
24*7a46fbe4Spfg# mk file for FreeBSD Unix ARM using GCC, please make generic modifications
25*7a46fbe4Spfg# to unxfbsd.mk
26*7a46fbe4Spfg
27*7a46fbe4SpfgCDEFAULTOPT=-Os
28*7a46fbe4SpfgCDEFS+=-DARM32
29*7a46fbe4SpfgCFLAGS+=-fno-omit-frame-pointer
30*7a46fbe4SpfgDLLPOSTFIX=
31*7a46fbe4Spfg
32*7a46fbe4Spfg.IF "$(ARM_TARGET)" == "ARMV4T"
33*7a46fbe4SpfgARCH_FLAGS+=-march=armv4t
34*7a46fbe4SpfgCDEFS+=-DARMV4T
35*7a46fbe4Spfg.ENDIF
36*7a46fbe4Spfg
37*7a46fbe4Spfg.IF "$(ARM_TARGET)" == "ARMV6"
38*7a46fbe4SpfgARCH_FLAGS+=-march=armv6
39*7a46fbe4SpfgCDEFS+=-DARMV6
40*7a46fbe4Spfg.ENDIF
41*7a46fbe4Spfg
42*7a46fbe4Spfg.IF "$(ARM_TARGET)" == "ARMV7"
43*7a46fbe4SpfgARCH_FLAGS+=-march=armv7-a -mtune=cortex-a8 -mfpu=neon
44*7a46fbe4SpfgCDEFS+=-DARMV7
45*7a46fbe4Spfg.ENDIF
46*7a46fbe4Spfg
47