STM32-P103: add usbserial preset
[bertos.git] / boards / stm32-p103 / examples / usbserial / usbserial.mk
1 #
2 # Wizard autogenerated makefile.
3 # DO NOT EDIT, use the usbserial_user.mk file instead.
4 #
5
6 # Constants automatically defined by the selected modules
7
8
9 # Our target application
10 TRG += usbserial
11
12 usbserial_PREFIX = "arm-none-eabi-"
13
14 usbserial_SUFFIX = ""
15
16 usbserial_SRC_PATH = boards/stm32-p103/examples/usbserial
17
18 usbserial_HW_PATH = boards/stm32-p103
19
20 # Files automatically generated by the wizard. DO NOT EDIT, USE usbserial_USER_CSRC INSTEAD!
21 usbserial_WIZARD_CSRC = \
22         bertos/cpu/cortex-m3/drv/ser_stm32.c \
23         bertos/cpu/cortex-m3/hw/switch_ctx_cm3.c \
24         bertos/mware/event.c \
25         bertos/cpu/cortex-m3/drv/timer_cm3.c \
26         bertos/struct/heap.c \
27         bertos/cpu/cortex-m3/drv/usb_stm32.c \
28         bertos/mware/formatwr.c \
29         bertos/io/kfile.c \
30         bertos/drv/timer.c \
31         bertos/kern/signal.c \
32         bertos/kern/proc.c \
33         bertos/drv/ser.c \
34         bertos/mware/hex.c \
35         bertos/drv/usbser.c \
36         #
37
38 # Files automatically generated by the wizard. DO NOT EDIT, USE usbserial_USER_PCSRC INSTEAD!
39 usbserial_WIZARD_PCSRC = \
40          \
41         #
42
43 # Files automatically generated by the wizard. DO NOT EDIT, USE usbserial_USER_CPPASRC INSTEAD!
44 usbserial_WIZARD_CPPASRC = \
45          \
46         #
47
48 # Files automatically generated by the wizard. DO NOT EDIT, USE usbserial_USER_CXXSRC INSTEAD!
49 usbserial_WIZARD_CXXSRC = \
50          \
51         #
52
53 # Files automatically generated by the wizard. DO NOT EDIT, USE usbserial_USER_ASRC INSTEAD!
54 usbserial_WIZARD_ASRC = \
55          \
56         #
57
58 usbserial_CPPFLAGS = -D'CPU_FREQ=(72000000UL)' -D'ARCH=(ARCH_DEFAULT)' -D'WIZ_AUTOGEN' -I$(usbserial_HW_PATH) -I$(usbserial_SRC_PATH) $(usbserial_CPU_CPPFLAGS) $(usbserial_USER_CPPFLAGS)
59
60 # Automatically generated by the wizard. PLEASE DO NOT EDIT!
61 usbserial_LDFLAGS = $(usbserial_CPU_LDFLAGS) $(usbserial_WIZARD_LDFLAGS) $(usbserial_USER_LDFLAGS)
62
63 # Automatically generated by the wizard. PLEASE DO NOT EDIT!
64 usbserial_CPPAFLAGS = $(usbserial_CPU_CPPAFLAGS) $(usbserial_WIZARD_CPPAFLAGS) $(usbserial_USER_CPPAFLAGS)
65
66 # Automatically generated by the wizard. PLEASE DO NOT EDIT!
67 usbserial_CSRC = $(usbserial_CPU_CSRC) $(usbserial_WIZARD_CSRC) $(usbserial_USER_CSRC)
68
69 # Automatically generated by the wizard. PLEASE DO NOT EDIT!
70 usbserial_PCSRC = $(usbserial_CPU_PCSRC) $(usbserial_WIZARD_PCSRC) $(usbserial_USER_PCSRC)
71
72 # Automatically generated by the wizard. PLEASE DO NOT EDIT!
73 usbserial_CPPASRC = $(usbserial_CPU_CPPASRC) $(usbserial_WIZARD_CPPASRC) $(usbserial_USER_CPPASRC)
74
75 # Automatically generated by the wizard. PLEASE DO NOT EDIT!
76 usbserial_CXXSRC = $(usbserial_CPU_CXXSRC) $(usbserial_WIZARD_CXXSRC) $(usbserial_USER_CXXSRC)
77
78 # Automatically generated by the wizard. PLEASE DO NOT EDIT!
79 usbserial_ASRC = $(usbserial_CPU_ASRC) $(usbserial_WIZARD_ASRC) $(usbserial_USER_ASRC)
80
81 # CPU specific flags and options, defined in the CPU definition files.
82 # Automatically generated by the wizard. PLEASE DO NOT EDIT!
83 usbserial_CPU_CPPASRC = bertos/cpu/cortex-m3/hw/crt_cm3.S bertos/cpu/cortex-m3/hw/vectors_cm3.S 
84 usbserial_CPU_CPPAFLAGS = -g -gdwarf-2 -mthumb -mno-thumb-interwork
85 usbserial_CPU_CPPFLAGS = -O0 -g3 -gdwarf-2 -mthumb -mno-thumb-interwork -fno-strict-aliasing -fwrapv -fverbose-asm -Ibertos/cpu/cortex-m3/ -D__ARM_STM32F103RB__
86 usbserial_CPU_CSRC = bertos/cpu/cortex-m3/hw/init_cm3.c bertos/cpu/cortex-m3/drv/irq_cm3.c bertos/cpu/cortex-m3/drv/gpio_stm32.c bertos/cpu/cortex-m3/drv/clock_stm32.c 
87 usbserial_PROGRAMMER_CPU = stm32
88 usbserial_CPU_LDFLAGS = -mthumb -mno-thumb-interwork -nostartfiles -Wl,--no-warn-mismatch -T bertos/cpu/cortex-m3/scripts/stm32f103rb_rom.ld
89 usbserial_STOPFLASH_SCRIPT = bertos/prg_scripts/arm/stopopenocd.sh
90 usbserial_CPU = cortex-m3
91 usbserial_STOPDEBUG_SCRIPT = bertos/prg_scripts/arm/stopopenocd.sh
92 usbserial_DEBUG_SCRIPT = bertos/prg_scripts/arm/debug.sh
93 usbserial_FLASH_SCRIPT = bertos/prg_scripts/arm/flash-stm32.sh
94
95 include $(usbserial_SRC_PATH)/usbserial_user.mk