root/trunk/hal/virtual-cam/defs.mk @ 341

Revision 341, 1.4 KB (checked in by goodea, 4 years ago)

virtual cam

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
Line 
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)
17export hal=virtual-cam
18HALNAME=$(hal)
19
20#COMPILER_PREFIX=arm-none-eabi-
21COMPILER_PREFIX=
22
23CC=$(CCACHE) $(COMPILER_PREFIX)gcc
24LD=$(COMPILER_PREFIX)ld
25AR=$(COMPILER_PREFIX)ar
26OBJCOPY=$(COMPILER_PREFIX)objcopy
27SIZE=$(COMPILER_PREFIX)size
28
29ifeq ($(strip $(HALDIR)),)
30  HALDIR=.
31endif
32
33
34LIBS+=
35override 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
44override LDFLAGS+=-lm
45
46HALLIB=libhal-$(HALNAME).a
Note: See TracBrowser for help on using the browser.