Moved all examples to a board specific folder.
This commit is contained in:
parent
d167b6c9e9
commit
3a4f36d80f
@ -1,7 +1,7 @@
|
|||||||
##
|
##
|
||||||
## This file is part of the libopenstm32 project.
|
## This file is part of the libopenstm32 project.
|
||||||
##
|
##
|
||||||
## Copyright (C) 2009 Uwe Hermann <uwe@hermann-uwe.de>
|
## Copyright (C) 2010 Piotr Esden-Tempski <piotr@esden.net>
|
||||||
##
|
##
|
||||||
## This program is free software: you can redistribute it and/or modify
|
## This program is free software: you can redistribute it and/or modify
|
||||||
## it under the terms of the GNU General Public License as published by
|
## it under the terms of the GNU General Public License as published by
|
||||||
@ -25,27 +25,15 @@ ifneq ($(V),1)
|
|||||||
Q := @
|
Q := @
|
||||||
endif
|
endif
|
||||||
|
|
||||||
all: miniblink fancyblink usart
|
all: STM32-H103
|
||||||
|
|
||||||
miniblink:
|
STM32-H103:
|
||||||
@printf " BUILD miniblink\n"
|
@printf " BUILD STM32-H103 examples\n"
|
||||||
$(Q)$(MAKE) -C miniblink
|
$(Q)$(MAKE) -C STM32-H103
|
||||||
|
|
||||||
fancyblink:
|
|
||||||
@printf " BUILD fancyblink\n"
|
|
||||||
$(Q)$(MAKE) -C fancyblink
|
|
||||||
|
|
||||||
usart:
|
|
||||||
@printf " BUILD usart\n"
|
|
||||||
$(Q)$(MAKE) -C usart
|
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
@printf " CLEAN miniblink\n"
|
@printf " CLEAN STM32-H103 examples\n"
|
||||||
$(Q)$(MAKE) -C miniblink clean
|
$(Q)$(MAKE) -C STM32-H103 clean
|
||||||
@printf " CLEAN fancyblink\n"
|
|
||||||
$(Q)$(MAKE) -C fancyblink clean
|
|
||||||
@printf " CLEAN usart\n"
|
|
||||||
$(Q)$(MAKE) -C usart clean
|
|
||||||
|
|
||||||
.PHONY: miniblink fancyblink usart clean
|
.PHONY: STM32-H103 clean
|
||||||
|
|
||||||
|
51
examples/STM32-H103/Makefile
Normal file
51
examples/STM32-H103/Makefile
Normal file
@ -0,0 +1,51 @@
|
|||||||
|
##
|
||||||
|
## This file is part of the libopenstm32 project.
|
||||||
|
##
|
||||||
|
## Copyright (C) 2009 Uwe Hermann <uwe@hermann-uwe.de>
|
||||||
|
##
|
||||||
|
## This program is free software: you can redistribute it and/or modify
|
||||||
|
## it under the terms of the GNU General Public License as published by
|
||||||
|
## the Free Software Foundation, either version 3 of the License, or
|
||||||
|
## (at your option) any later version.
|
||||||
|
##
|
||||||
|
## This program is distributed in the hope that it will be useful,
|
||||||
|
## but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
## GNU General Public License for more details.
|
||||||
|
##
|
||||||
|
## You should have received a copy of the GNU General Public License
|
||||||
|
## along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
##
|
||||||
|
|
||||||
|
# Do not print "Entering directory ...".
|
||||||
|
## MAKEFLAGS += --no-print-directory
|
||||||
|
|
||||||
|
# Be silent per default, but 'make V=1' will show all compiler calls.
|
||||||
|
ifneq ($(V),1)
|
||||||
|
Q := @
|
||||||
|
endif
|
||||||
|
|
||||||
|
all: miniblink fancyblink usart
|
||||||
|
|
||||||
|
miniblink:
|
||||||
|
@printf " BUILD miniblink\n"
|
||||||
|
$(Q)$(MAKE) -C miniblink
|
||||||
|
|
||||||
|
fancyblink:
|
||||||
|
@printf " BUILD fancyblink\n"
|
||||||
|
$(Q)$(MAKE) -C fancyblink
|
||||||
|
|
||||||
|
usart:
|
||||||
|
@printf " BUILD usart\n"
|
||||||
|
$(Q)$(MAKE) -C usart
|
||||||
|
|
||||||
|
clean:
|
||||||
|
@printf " CLEAN miniblink\n"
|
||||||
|
$(Q)$(MAKE) -C miniblink clean
|
||||||
|
@printf " CLEAN fancyblink\n"
|
||||||
|
$(Q)$(MAKE) -C fancyblink clean
|
||||||
|
@printf " CLEAN usart\n"
|
||||||
|
$(Q)$(MAKE) -C usart clean
|
||||||
|
|
||||||
|
.PHONY: miniblink fancyblink usart clean
|
||||||
|
|
@ -27,7 +27,7 @@ OBJCOPY = $(PREFIX)-objcopy
|
|||||||
OBJDUMP = $(PREFIX)-objdump
|
OBJDUMP = $(PREFIX)-objdump
|
||||||
# Uncomment this line if you want to use the installed (not local) library.
|
# Uncomment this line if you want to use the installed (not local) library.
|
||||||
# TOOLCHAIN_DIR = `dirname \`which $(CC)\``/../$(PREFIX)
|
# TOOLCHAIN_DIR = `dirname \`which $(CC)\``/../$(PREFIX)
|
||||||
TOOLCHAIN_DIR = ../..
|
TOOLCHAIN_DIR = ../../..
|
||||||
CFLAGS = -O0 -g -Wall -Wextra -I$(TOOLCHAIN_DIR)/include -fno-common \
|
CFLAGS = -O0 -g -Wall -Wextra -I$(TOOLCHAIN_DIR)/include -fno-common \
|
||||||
-mcpu=cortex-m3 -mthumb
|
-mcpu=cortex-m3 -mthumb
|
||||||
LDSCRIPT = $(BINARY).ld
|
LDSCRIPT = $(BINARY).ld
|
@ -27,7 +27,7 @@ OBJCOPY = $(PREFIX)-objcopy
|
|||||||
OBJDUMP = $(PREFIX)-objdump
|
OBJDUMP = $(PREFIX)-objdump
|
||||||
# Uncomment this line if you want to use the installed (not local) library.
|
# Uncomment this line if you want to use the installed (not local) library.
|
||||||
# TOOLCHAIN_DIR = `dirname \`which $(CC)\``/../$(PREFIX)
|
# TOOLCHAIN_DIR = `dirname \`which $(CC)\``/../$(PREFIX)
|
||||||
TOOLCHAIN_DIR = ../..
|
TOOLCHAIN_DIR = ../../..
|
||||||
CFLAGS = -O0 -g -Wall -Wextra -I$(TOOLCHAIN_DIR)/include -fno-common \
|
CFLAGS = -O0 -g -Wall -Wextra -I$(TOOLCHAIN_DIR)/include -fno-common \
|
||||||
-mcpu=cortex-m3 -mthumb
|
-mcpu=cortex-m3 -mthumb
|
||||||
LDSCRIPT = $(BINARY).ld
|
LDSCRIPT = $(BINARY).ld
|
@ -27,7 +27,7 @@ OBJCOPY = $(PREFIX)-objcopy
|
|||||||
OBJDUMP = $(PREFIX)-objdump
|
OBJDUMP = $(PREFIX)-objdump
|
||||||
# Uncomment this line if you want to use the installed (not local) library.
|
# Uncomment this line if you want to use the installed (not local) library.
|
||||||
# TOOLCHAIN_DIR = `dirname \`which $(CC)\``/../$(PREFIX)
|
# TOOLCHAIN_DIR = `dirname \`which $(CC)\``/../$(PREFIX)
|
||||||
TOOLCHAIN_DIR = ../..
|
TOOLCHAIN_DIR = ../../..
|
||||||
CFLAGS = -O0 -g -Wall -Wextra -I$(TOOLCHAIN_DIR)/include -fno-common \
|
CFLAGS = -O0 -g -Wall -Wextra -I$(TOOLCHAIN_DIR)/include -fno-common \
|
||||||
-mcpu=cortex-m3 -mthumb
|
-mcpu=cortex-m3 -mthumb
|
||||||
LDSCRIPT = $(BINARY).ld
|
LDSCRIPT = $(BINARY).ld
|
Loading…
x
Reference in New Issue
Block a user