forked from stev47/bibo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.common
executable file
·72 lines (59 loc) · 2.18 KB
/
Makefile.common
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
### ==========================================================================
### $Id: Makefile.common 887 2009-04-21 16:32:52Z hoenicke $
### FILE: Makefile.common - definitions common to most brickOS Makefiles
### bibo - another LEGO Mindstorms OS
### --------------------------------------------------------------------------
### (this file is included by other brickOS Makefiles)
#
# Define our default install locations (overridden by packaging systems)
#
DESTDIR =
prefix = /usr/local/brickos
exec_prefix = ${prefix}
bindir = ${exec_prefix}/bin
sbindir = ${exec_prefix}/sbin
libexecdir = ${exec_prefix}/lib
datadir = ${prefix}/share
docdir = ${prefix}/share/doc
targetdir = ${prefix}/h8300-hitachi-hms
sysconfdir = ${prefix}/etc
sharedstatedir = ${prefix}/com
localstatedir = ${prefix}/var
mandir = ${prefix}/man
includedir = ${prefix}/include
pkgdatadir = $(datadir)/${PACKAGE}
pkgdocdir = $(docdir)/packages/${PACKAGE}
pkghtmldir = $(pkgdocdir)/html
pkgexampledir = $(pkgdocdir)/examples
pkgincludedir = $(targetdir)/include
pkglibdir = $(targetdir)/lib
Makefile.config: configure
./configure
-include Makefile.config
# ----------------------------------------------------------------------------
# defines for build of cross-compiled parts: brickOS, demos
# ----------------------------------------------------------------------------
# options
CROSSCOPT =-g -Os -mquickcall -fno-builtin -fomit-frame-pointer
CROSSCWARN =-Wall
CROSSCINC =-Iinclude
CROSSCFLAGS=$(CROSSCOPT) $(CROSSCWARN) $(CROSSCINC) $(CROSSCDEFINES)
CROSSCXXFLAGS=-DCXX -fno-rtti -fno-exceptions $(CROSSCFLAGS)
##
## no user servicable parts below
##
CROSSAS=$(CROSSTOOLPREFIX)as
CROSSAR=$(CROSSTOOLPREFIX)ar
CROSSLD=$(CROSSTOOLPREFIX)ld
CROSSNM=$(CROSSTOOLPREFIX)nm
CROSSOBJCOPY=$(CROSSTOOLPREFIX)objcopy
CROSSOBJDUMP=$(CROSSTOOLPREFIX)objdump
CROSSCC=$(CROSSTOOLPREFIX)gcc
CROSSCXX=$(CROSSTOOLPREFIX)g++
MERGEMAP=util/merge-map
FIXDEPS =util/fixdeps$(EXT)
GENLDS =util/genlds$(EXT)
MAKELX =util/makelx$(EXT)
### --------------------------------------------------------------------------
### End of FILE: Makefile.common
### ==========================================================================