33 LSS_ENABLE = SUB_LSS_ENABLE |
33 LSS_ENABLE = SUB_LSS_ENABLE |
34 LED_ENABLE = SUB_LED_ENABLE |
34 LED_ENABLE = SUB_LED_ENABLE |
35 NVRAM_ENABLE = SUB_NVRAM_ENABLE |
35 NVRAM_ENABLE = SUB_NVRAM_ENABLE |
36 CAN_DRIVER = SUB_CAN_DRIVER |
36 CAN_DRIVER = SUB_CAN_DRIVER |
37 TIMERS_DRIVER = SUB_TIMERS_DRIVER |
37 TIMERS_DRIVER = SUB_TIMERS_DRIVER |
38 TIMERS_ENABLE = SUB_TIMERS_ENABLE |
|
39 |
38 |
40 INCLUDES = -I../include -I../include/$(TARGET) -I../include/$(CAN_DRIVER) -I../include/$(TIMERS_DRIVER) -I../drivers/$(TARGET) |
39 INCLUDES = -I../include -I../include/$(TARGET) -I../include/$(CAN_DRIVER) -I../include/$(TIMERS_DRIVER) -I../drivers/$(TARGET) |
41 |
40 |
42 OBJS = $(TARGET)_objacces.o $(TARGET)_lifegrd.o $(TARGET)_sdo.o\ |
41 OBJS = $(TARGET)_objacces.o $(TARGET)_lifegrd.o $(TARGET)_sdo.o\ |
43 $(TARGET)_pdo.o $(TARGET)_sync.o $(TARGET)_nmtSlave.o $(TARGET)_nmtMaster.o $(TARGET)_states.o |
42 $(TARGET)_pdo.o $(TARGET)_sync.o $(TARGET)_nmtSlave.o $(TARGET)_nmtMaster.o $(TARGET)_states.o $(TARGET)_timer.o |
44 |
|
45 # ecos driver shortcuts timer.c |
|
46 ifeq ($(TIMERS_ENABLE),YES) |
|
47 OBJS += $(TARGET)_timer.o |
|
48 endif |
|
49 |
43 |
50 # # # # Target specific paramters # # # # |
44 # # # # Target specific paramters # # # # |
51 |
45 |
52 ifeq ($(TARGET),ecos_lpc2138_sja1000) |
46 ifeq ($(TARGET),ecos_lpc2138_sja1000) |
53 ECOS_GLOBAL_CFLAGS=-mcpu=arm7tdmi -Wall -Wpointer-arith -Wstrict-prototypes -Winline -Wundef -Os -ffunction-sections -fdata-sections -fno-exceptions -finline-functions |
47 ECOS_GLOBAL_CFLAGS=-mcpu=arm7tdmi -Wall -Wpointer-arith -Wstrict-prototypes -Winline -Wundef -Os -ffunction-sections -fdata-sections -fno-exceptions -finline-functions |
78 |
72 |
79 ifeq ($(NVRAM_ENABLE),YES) |
73 ifeq ($(NVRAM_ENABLE),YES) |
80 OBJS += $(TARGET)_nvram.o |
74 OBJS += $(TARGET)_nvram.o |
81 SRC_HFILES += ../include/nvram.h |
75 SRC_HFILES += ../include/nvram.h |
82 endif |
76 endif |
83 |
|
84 ifeq ($(TIMERS_ENABLE),YES) |
|
85 OBJS += $(TARGET)_timer.o |
|
86 endif |
|
87 |
|
88 |
77 |
89 CFLAGS = SUB_OPT_CFLAGS |
78 CFLAGS = SUB_OPT_CFLAGS |
90 |
79 |
91 all: canfestival |
80 all: canfestival |
92 |
81 |