1
0
Fork 0
forked from len0rd/rockbox
foxbox/firmware/test/makefile-vars
Alan Korr 8a42139091 grrr... now it should compile all files $(PACKAGE)-*.c found in the directory $(PACKAGE)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@117 a1c6a512-1295-4272-9138-f99709370657
2002-04-17 12:53:30 +00:00

79 lines
2.1 KiB
Text

#############################################################################
## __________ __ ___.
## Open \______ \ ____ ____ | | _\_ |__ _______ ___
## Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
## Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
## Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
## \/ \/ \/ \/ \/
## Copyright Alan Korr, 2002. All rights reserved.
##
## Permission to use, copy, modify, and distribute this software for any
## purpose is hereby granted without fee, provided that this copyright and
## permissions notice appear in all copies and derivatives, and that no
## charge may be made for the software and its documentation except to cover
## cost of distribution.
##
## This software is provided "as is" without express or implied warranty.
#############################################################################
#######################################################################
## PLEASE CONSIDER THERE IS NOTHING TO CHANGE IN THE FOLLOWING LINES
## SINCE THERE ARE COMMON FOR ALL LIBRARY
##
ARCH=test
CC = gcc
AS = as
LD = ld
AR = ar
RL = ranlib
OC = objcopy
GZ = gzip -f
PREFIX = ~/rockbox/$(ARCH)
DEFINES = -DTEST
CFLAGS = -g
#CFLAGS += -save-temps
CFLAGS += -Wall \
-W \
-Wshadow \
-Wpointer-arith \
-Waggregate-return \
-Wstrict-prototypes \
-Wredundant-decls \
-Winline \
-Wmissing-prototypes \
-Werror \
-Wsign-compare \
-Wmissing-declarations \
-Wmissing-noreturns \
-Wnested-externs
CFLAGS += -pipe -O3
CFLAGS += -fomit-frame-pointer \
-fschedule-insns
CFLAGS += $(EXTRA_CFLAGS)
CFLAGS += $(DEFINES)
INCLUDES = -I.. \
-I. \
-I$(PREFIX)/headers
LIBRARY = lib$(PACKAGE).a
HEADERS = $(PACKAGE).h \
config.h \
defines.h \
types.h \
return_values.h \
inlines.h \
functions.h
SOURCES = $(wildcard $(PACKAGE)-$.c)
OBJECTS = $(SOURCES:.c=.o)
DEPENDENCIES = $(SOURCES:.c=.d)
HEADER_PATH = $(PREFIX)/headers/$(PACKAGE)/.