Did some syntactical updates
[educational.data.git] / fag / speciale / nodes / src / images / battery / Makefile.am
blob8d4422b2cc0a68fe769e368a19d9546e25c38f86
1 # set up to use ARM compiler.
2 CC=@ARM_CC@
3 CXX=@ARM_CXX@
4 CPP=@ARM_CPP@
5 AS=@ARM_AS@
6 AR=@ARM_AR@
7 RANLIB=@ARM_RANLIB@
9 MODULE_ID=-1
11 # needed to make sure that distcheck will not fail
12 # this is not something that is normally important.
13 EXTRA_DIST=module.cpp
15 .PHONY: module.cpp
17 if BUILD_FOR_MODULES
19 AM_CFLAGS=-I$(top_srcdir)/src/libs @MODULE_CFLAGS@
20 AM_CXXFLAGS=-Wall -I$(top_srcdir)/src/libs @MODULE_CXXFLAGS@ -DMODULE_ID=${MODULE_ID}
22 BUILDDIR=${subdir}
23 noinst_PROGRAMS=totalLeg.elf
25 PROGRAM_TARGET=totalLeg.elf
27 totalLeg_elf_SOURCES=module.cpp
28 totalLeg_elf_LINK=${CXX} ${LDFLAGS} -o $@
29 totalLeg_elf_LDADD=../../libs/liblegsim.a
31 totalLeg.elf$(EXEEXT): $(totalLeg_elf_OBJECTS) $(totalLeg_elf_DEPENDENCIES) 
32         @rm -f totalLeg.elf$(EXEEXT)
33         $(totalLeg_elf_LINK) $(MODULE_LDFLAGS) $(totalLeg_elf_OBJECTS) ${totalLeg_elf_LDADD} $(LIBS)
34 endif
37 include ${top_srcdir}/makefiles/source.mak