STM32-P103: add usbmouse preset
[bertos.git] / boards / stm32-p103 / examples / usbmouse / usbmouse.mk
1 #
2 # Wizard autogenerated makefile.
3 # DO NOT EDIT, use the usbmouse_user.mk file instead.
4 #
5
6 # Constants automatically defined by the selected modules
7 usbmouse_DEBUG = 1
8
9 # Our target application
10 TRG += usbmouse
11
12 usbmouse_PREFIX = "arm-none-eabi-"
13
14 usbmouse_SUFFIX = ""
15
16 usbmouse_SRC_PATH = boards/stm32-p103/examples/usbmouse
17
18 usbmouse_HW_PATH = boards/stm32-p103
19
20 # Files automatically generated by the wizard. DO NOT EDIT, USE usbmouse_USER_CSRC INSTEAD!
21 usbmouse_WIZARD_CSRC = \
22         bertos/struct/heap.c \
23         bertos/drv/usbmouse.c \
24         bertos/mware/event.c \
25         bertos/cpu/cortex-m3/drv/timer_cm3.c \
26         bertos/drv/kbd.c \
27         bertos/io/kfile.c \
28         bertos/mware/formatwr.c \
29         bertos/cpu/cortex-m3/drv/usb_stm32.c \
30         bertos/drv/timer.c \
31         bertos/mware/hex.c \
32         #
33
34 # Files automatically generated by the wizard. DO NOT EDIT, USE usbmouse_USER_PCSRC INSTEAD!
35 usbmouse_WIZARD_PCSRC = \
36          \
37         #
38
39 # Files automatically generated by the wizard. DO NOT EDIT, USE usbmouse_USER_CPPASRC INSTEAD!
40 usbmouse_WIZARD_CPPASRC = \
41          \
42         #
43
44 # Files automatically generated by the wizard. DO NOT EDIT, USE usbmouse_USER_CXXSRC INSTEAD!
45 usbmouse_WIZARD_CXXSRC = \
46          \
47         #
48
49 # Files automatically generated by the wizard. DO NOT EDIT, USE usbmouse_USER_ASRC INSTEAD!
50 usbmouse_WIZARD_ASRC = \
51          \
52         #
53
54 usbmouse_CPPFLAGS = -D'CPU_FREQ=(72000000UL)' -D'ARCH=(ARCH_DEFAULT)' -D'WIZ_AUTOGEN' -I$(usbmouse_HW_PATH) -I$(usbmouse_SRC_PATH) $(usbmouse_CPU_CPPFLAGS) $(usbmouse_USER_CPPFLAGS)
55
56 # Automatically generated by the wizard. PLEASE DO NOT EDIT!
57 usbmouse_LDFLAGS = $(usbmouse_CPU_LDFLAGS) $(usbmouse_WIZARD_LDFLAGS) $(usbmouse_USER_LDFLAGS)
58
59 # Automatically generated by the wizard. PLEASE DO NOT EDIT!
60 usbmouse_CPPAFLAGS = $(usbmouse_CPU_CPPAFLAGS) $(usbmouse_WIZARD_CPPAFLAGS) $(usbmouse_USER_CPPAFLAGS)
61
62 # Automatically generated by the wizard. PLEASE DO NOT EDIT!
63 usbmouse_CSRC = $(usbmouse_CPU_CSRC) $(usbmouse_WIZARD_CSRC) $(usbmouse_USER_CSRC)
64
65 # Automatically generated by the wizard. PLEASE DO NOT EDIT!
66 usbmouse_PCSRC = $(usbmouse_CPU_PCSRC) $(usbmouse_WIZARD_PCSRC) $(usbmouse_USER_PCSRC)
67
68 # Automatically generated by the wizard. PLEASE DO NOT EDIT!
69 usbmouse_CPPASRC = $(usbmouse_CPU_CPPASRC) $(usbmouse_WIZARD_CPPASRC) $(usbmouse_USER_CPPASRC)
70
71 # Automatically generated by the wizard. PLEASE DO NOT EDIT!
72 usbmouse_CXXSRC = $(usbmouse_CPU_CXXSRC) $(usbmouse_WIZARD_CXXSRC) $(usbmouse_USER_CXXSRC)
73
74 # Automatically generated by the wizard. PLEASE DO NOT EDIT!
75 usbmouse_ASRC = $(usbmouse_CPU_ASRC) $(usbmouse_WIZARD_ASRC) $(usbmouse_USER_ASRC)
76
77 # CPU specific flags and options, defined in the CPU definition files.
78 # Automatically generated by the wizard. PLEASE DO NOT EDIT!
79 usbmouse_CPU_CPPASRC = bertos/cpu/cortex-m3/hw/crt_cm3.S bertos/cpu/cortex-m3/hw/vectors_cm3.S 
80 usbmouse_CPU_CPPAFLAGS = -g -gdwarf-2 -mthumb -mno-thumb-interwork
81 usbmouse_CPU_CPPFLAGS = -O0 -g3 -gdwarf-2 -mthumb -mno-thumb-interwork -fno-strict-aliasing -fwrapv -fverbose-asm -Ibertos/cpu/cortex-m3/ -D__ARM_STM32F103RB__
82 usbmouse_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 
83 usbmouse_PROGRAMMER_CPU = stm32
84 usbmouse_CPU_LDFLAGS = -mthumb -mno-thumb-interwork -nostartfiles -Wl,--no-warn-mismatch -T bertos/cpu/cortex-m3/scripts/stm32f103rb_rom.ld
85 usbmouse_STOPFLASH_SCRIPT = bertos/prg_scripts/arm/stopopenocd.sh
86 usbmouse_CPU = cortex-m3
87 usbmouse_STOPDEBUG_SCRIPT = bertos/prg_scripts/arm/stopopenocd.sh
88 usbmouse_DEBUG_SCRIPT = bertos/prg_scripts/arm/debug.sh
89 usbmouse_FLASH_SCRIPT = bertos/prg_scripts/arm/flash-stm32.sh
90
91 include $(usbmouse_SRC_PATH)/usbmouse_user.mk