1 BASEDIR
:=/home
/eschulte
/src
/ixm
/sfb
/src
/template
/..
/..
4 include $(BASEDIR
)/config
/Makevars.mk
7 include $(BASEDIR
)/config
/Makecommon.mk
9 COMMON_CPPFLAGS
:=-Wall
-pedantic
-Werror
-Wundef
10 CROSS_GCC_CPPFLAGS
:=$(COMMON_CPPFLAGS
) -mcpu
=arm7tdmi
-mthumb-interwork
-mno-long-calls
-ffunction-sections
-fdata-sections
-fno-rtti
-fno-exceptions
-fno-use-cxa-atexit
-fno-use-cxa-get-exception-ptr
11 CPPFLAGS
:=$(CROSS_GCC_CPPFLAGS
)
13 CPPFLAGS
+=-I
$(INCLUDEDIR
) -I
$(INCLUDEDIR
)/lpc
-Os
-O2
14 CFLAGS
+=-I
$(INCLUDEDIR
) -I
$(INCLUDEDIR
)/lpc
-Os
-O2
16 # If anything in the lib changes: Kill them, kill them all
17 ALLDEP
+=$(wildcard $(LIBDIR
)/*)
19 OBJFILES
:=sketch-wrapper.o collector.o
21 LDFLAGS
+= -nostartfiles
--cref
-M
-Map
$(TMPDIR
)/sketch.map
-lm
-lc
26 $(BINDIR
)/sketch.hex
: $(OBJDIR
)/sketch
27 $(OBJCOPY
) --strip-unneeded
-O ihex
$(OBJDIR
)/sketch
$@
29 $(OBJDIR
)/sketch
: $(OBJFILES
) FORCE
30 $(LD
) $(OBJFILES
) $(LDFLAGS
) -T
$(LIBDIR
)/sfbloader.
ld -o
"$@"
32 sketch-wrapper.o
: sketch-wrapper.
cpp sketch.pde
$(ALLDEP
)
33 $(GCC
) $(CPPFLAGS
) $(SKETCH_EXTRA_CPPFLAGS
) -Wall
-c
-I ..
/..
/src
/include/ sketch-wrapper.
cpp
35 collector.o
: collector.
cpp $(ALLDEP
)
36 $(GCC
) $(CPPFLAGS
) $(SKETCH_EXTRA_CPPFLAGS
) -Wall
-c
-I ..
/..
/src
/include/ collector.
cpp