]> rtime.felk.cvut.cz Git - fpga/rpi-motor-control-pxmc.git/blob - src/app/rpi-pmsm-test1/Makefile.omk
RPi PXMC Test: preliminary preparations for compatibility with RTEMS.
[fpga/rpi-motor-control-pxmc.git] / src / app / rpi-pmsm-test1 / Makefile.omk
1 # -*- makefile -*-
2
3 default_CONFIG  = CONFIG_APP_RPI_PMSM_T1=x
4 #default_CONFIG += CONFIG_OC_MWENGINE=x
5 default_CONFIG += CONFIG_APP_RPI_PMSM_T1_WITH_ULAN=x
6 default_CONFIG += CONFIG_APP_RPI_PMSM_T1_WITH_SUITK=x
7 default_CONFIG += CONFIG_APP_RPI_PMSM_T1_WITH_SIM_POSIX=x
8 default_CONFIG += CONFIG_OC_CMDPROC=x CONFIG_PXMC=x CONFIG_PXMC_COORDMV=x
9
10 ifeq ($(CONFIG_APP_RPI_PMSM_T1),y)
11
12 LOCAL_CONFIG_H = appl_config.h
13
14 #INCLUDES += -I$(USER_INCLUDE_DIR)/ul_lib -I.
15
16 INCLUDES += -I.
17
18 bin_PROGRAMS = rpi_pmsm_t1
19
20 rpi_pmsm_t1_SOURCES  = appl_main.c
21
22 rpi_pmsm_t1_SOURCES += appl_utils.c
23
24 rpi_pmsm_t1_SOURCES += rpi_gpio.c
25 rpi_pmsm_t1_SOURCES += rpi_gpclk.c
26 rpi_pmsm_t1_SOURCES += rpi_spi.c
27
28 ifeq ($(CONFIG_OC_CMDPROC),y)
29 rpi_pmsm_t1_SOURCES += appl_cmdproc.c
30 #rpi_pmsm_t1_SOURCES += appl_cmds.c
31 #rpi_pmsm_t1_SOURCES += appl_tests.c
32 #rpi_pmsm_t1_SOURCES += appl_dprint.c
33 #rpi_pmsm_t1_SOURCES += cmd_uartcon.c
34 ifeq ($(CONFIG_PXMC_COORDMV),y)
35 rpi_pmsm_t1_SOURCES += appl_pxmccmds.c
36 endif
37 endif
38
39 ifeq ($(CONFIG_PXMC),y)
40 ifeq ($(CONFIG_PXMC_COORDMV),y)
41 rpi_pmsm_t1_SOURCES += appl_coordmv.c math_sqrtll.c
42 lib_LOADLIBES += pxmc_coordmv
43 endif
44 rpi_pmsm_t1_SOURCES += appl_pxmc.c
45 #rpi_pmsm_t1_SOURCES += appl_pxmccmds.c
46 lib_LOADLIBES += pxmc
47 #lib_LOADLIBES += pxmcbsp
48 endif
49
50 ifeq ($(CONFIG_OC_CMDPROC),y)
51 lib_LOADLIBES += cmdproc misc
52 endif
53
54 ifeq ($(CONFIG_OC_ULUT),y)
55 lib_LOADLIBES += ulut
56 endif
57
58 ifneq ($(CONFIG_OC_BUILD4RTEMS),y)
59 lib_LOADLIBES += rt
60 lib_LOADLIBES += pthread
61 endif
62 lib_LOADLIBES += m
63
64 #link_VARIANTS = app sdram
65
66 endif #CONFIG_APP_RPI_PMSM_T1