diff options
Diffstat (limited to 'firmware/test/makefile-vars')
-rw-r--r-- | firmware/test/makefile-vars | 79 |
1 files changed, 79 insertions, 0 deletions
diff --git a/firmware/test/makefile-vars b/firmware/test/makefile-vars new file mode 100644 index 0000000000..719f01dd98 --- /dev/null +++ b/firmware/test/makefile-vars | |||
@@ -0,0 +1,79 @@ | |||
1 | ############################################################################# | ||
2 | ## __________ __ ___. | ||
3 | ## Open \______ \ ____ ____ | | _\_ |__ _______ ___ | ||
4 | ## Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / | ||
5 | ## Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < | ||
6 | ## Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ | ||
7 | ## \/ \/ \/ \/ \/ | ||
8 | ## Copyright Alan Korr, 2002. All rights reserved. | ||
9 | ## | ||
10 | ## Permission to use, copy, modify, and distribute this software for any | ||
11 | ## purpose is hereby granted without fee, provided that this copyright and | ||
12 | ## permissions notice appear in all copies and derivatives, and that no | ||
13 | ## charge may be made for the software and its documentation except to cover | ||
14 | ## cost of distribution. | ||
15 | ## | ||
16 | ## This software is provided "as is" without express or implied warranty. | ||
17 | ############################################################################# | ||
18 | |||
19 | ####################################################################### | ||
20 | ## PLEASE CONSIDER THERE IS NOTHING TO CHANGE IN THE FOLLOWING LINES | ||
21 | ## SINCE THERE ARE COMMON FOR ALL LIBRARY | ||
22 | ## | ||
23 | |||
24 | ARCH=test | ||
25 | |||
26 | CC = gcc | ||
27 | AS = as | ||
28 | LD = ld | ||
29 | AR = ar | ||
30 | RL = ranlib | ||
31 | OC = objcopy | ||
32 | GZ = gzip -f | ||
33 | |||
34 | PREFIX = ~/rockbox/$(ARCH) | ||
35 | DEFINES = -DTEST | ||
36 | |||
37 | CFLAGS = -g | ||
38 | #CFLAGS += -save-temps | ||
39 | CFLAGS += -Wall \ | ||
40 | -W \ | ||
41 | -Wshadow \ | ||
42 | -Wpointer-arith \ | ||
43 | -Waggregate-return \ | ||
44 | -Wstrict-prototypes \ | ||
45 | -Wredundant-decls \ | ||
46 | -Winline \ | ||
47 | -Wmissing-prototypes \ | ||
48 | -Werror \ | ||
49 | -Wsign-compare \ | ||
50 | -Wmissing-declarations \ | ||
51 | -Wmissing-noreturns \ | ||
52 | -Wnested-externs | ||
53 | CFLAGS += -pipe -O3 | ||
54 | CFLAGS += -fomit-frame-pointer \ | ||
55 | -fschedule-insns | ||
56 | CFLAGS += $(EXTRA_CFLAGS) | ||
57 | CFLAGS += $(DEFINES) | ||
58 | |||
59 | INCLUDES = -I.. \ | ||
60 | -I. \ | ||
61 | -I$(PREFIX)/headers | ||
62 | |||
63 | LIBRARY = lib$(PACKAGE).a | ||
64 | |||
65 | HEADERS = $(PACKAGE).h \ | ||
66 | config.h \ | ||
67 | defines.h \ | ||
68 | types.h \ | ||
69 | return_values.h \ | ||
70 | inlines.h \ | ||
71 | functions.h | ||
72 | |||
73 | SOURCES = $(wildcard $(PACKAGE)-*.c) | ||
74 | |||
75 | OBJECTS = $(SOURCES:.c=.o) | ||
76 | |||
77 | DEPENDENCIES = $(SOURCES:.c=.d) | ||
78 | |||
79 | HEADER_PATH = $(PREFIX)/headers/$(PACKAGE)/. | ||