Search
Project
General
Profile
Sign in
Register
Home
Projects
Redmine shortcuts
Search
:
MityDSP-L138 (ARM9 Based Platforms)
All Projects
Mity CPU Platforms
»
MityDSP-L138 (ARM9 Based Platforms)
Overview
Activity
Wiki
Forums
Download (952 Bytes)
DSP Hello World
» Makefile
Gregory Gluszek
, 04/18/2013 05:24 PM
###############################################################################
## Makefile example for compiling DSP Hello World ARM side code
###############################################################################
# Set the compiler being used.
CC
=
arm-angstrom-linux-gnueabi-g++
# Setup reference to MDK
ifndef
MDK
MDK
=
${
HOME
}
/MDK_2012-08-10
endif
# Includes needed for proper compilation
INCLUDES
=
-I
${
MDK
}
/sw/ARM/linux/libdsp
-I
${
MDK
}
/sw/ARM/linux/libdaq
# Libraries needed for linking
LDFLAGS
=
${
MDK
}
/lib/ARM/Release/dsplink.lib
-L
${
MDK
}
/lib/ARM/Release
-ldsp
-lpthread
-lrt
-ldaq
# Set Compiler Flags
CFLAGS
=
-g
-c
-Wall
$(
INCLUDES
)
-std
=
gnu++0x
# List of source to be compiled
SOURCES
=
arm_main.cpp
OBJECTS
=
$(
SOURCES:.cpp
=
.o
)
EXECUTABLE
=
HelloWorld
all
:
$(SOURCES) $(EXECUTABLE)
$(EXECUTABLE)
:
$(OBJECTS)
$(
CC
)
$(
OBJECTS
)
-o
$@
$(
LDFLAGS
)
.cpp.o
:
$(
CC
)
$(
CFLAGS
)
$<
-o
$@
clean
:
rm
-rf
$(
OBJECTS
)
$(
EXECUTABLE
)
« Previous
1
…
16
17
18
19
20
…
40
Next »
(18-18/40)
Go to top
Loading...