| 1 | # Copyright 2006 Anthony Rowe and Adam Goode |
|---|
| 2 | # |
|---|
| 3 | # Licensed under the Apache License, Version 2.0 (the "License"); |
|---|
| 4 | # you may not use this file except in compliance with the License. |
|---|
| 5 | # You may obtain a copy of the License at |
|---|
| 6 | # |
|---|
| 7 | # http://www.apache.org/licenses/LICENSE-2.0 |
|---|
| 8 | # |
|---|
| 9 | # Unless required by applicable law or agreed to in writing, software |
|---|
| 10 | # distributed under the License is distributed on an "AS IS" BASIS, |
|---|
| 11 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
|---|
| 12 | # See the License for the specific language governing permissions and |
|---|
| 13 | # limitations under the License. |
|---|
| 14 | |
|---|
| 15 | |
|---|
| 16 | #HALNAME=lpc2106-cmucam3$(THUMB_SUFFIX) |
|---|
| 17 | export hal=virtual-cam |
|---|
| 18 | HALNAME=$(hal) |
|---|
| 19 | |
|---|
| 20 | #COMPILER_PREFIX=arm-none-eabi- |
|---|
| 21 | COMPILER_PREFIX= |
|---|
| 22 | |
|---|
| 23 | CC=$(CCACHE) $(COMPILER_PREFIX)gcc |
|---|
| 24 | LD=$(COMPILER_PREFIX)ld |
|---|
| 25 | AR=$(COMPILER_PREFIX)ar |
|---|
| 26 | OBJCOPY=$(COMPILER_PREFIX)objcopy |
|---|
| 27 | SIZE=$(COMPILER_PREFIX)size |
|---|
| 28 | |
|---|
| 29 | ifeq ($(strip $(HALDIR)),) |
|---|
| 30 | HALDIR=. |
|---|
| 31 | endif |
|---|
| 32 | |
|---|
| 33 | |
|---|
| 34 | LIBS+= |
|---|
| 35 | override CFLAGS+=-I$(HALDIR)/../../include -Os -pipe -funit-at-a-time \ |
|---|
| 36 | -Wall -Wstrict-prototypes -Wcast-align -Wcast-qual \ |
|---|
| 37 | -Wimplicit -Wmissing-declarations -Wmissing-prototypes \ |
|---|
| 38 | -Wnested-externs -Wpointer-arith -Wswitch -Wno-redundant-decls \ |
|---|
| 39 | -Wreturn-type -Wshadow -Wstrict-prototypes -Wunused -Wextra \ |
|---|
| 40 | -Werror-implicit-function-declaration \ |
|---|
| 41 | -ffreestanding -std=gnu99 -g -fdata-sections -ffunction-sections \ |
|---|
| 42 | -DVIRTUAL_CAM |
|---|
| 43 | |
|---|
| 44 | override LDFLAGS+=-lm |
|---|
| 45 | |
|---|
| 46 | HALLIB=libhal-$(HALNAME).a |
|---|