src/Makefile.in
changeset 24 a9543d2ccd56
parent 3 d9cf34cd6823
child 93 16c8ceea8f18
equal deleted inserted replaced
23:6a5cdca4de01 24:a9543d2ccd56
    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
    57 ifeq ($(TARGET),hcs12)
    51 ifeq ($(TARGET),hcs12)
    58 OPT_CFLAGS = -Os
    52 OPT_CFLAGS = -Os
    59 PROGDEFINES = -mnoshort -Wall -Wmissing-prototypes -fno-strict-aliasing
    53 PROGDEFINES = -mnoshort -Wall -Wmissing-prototypes -fno-strict-aliasing
    60 endif
    54 endif
    61 
    55 
    62 ifeq ($(TARGET),generic)
    56 ifeq ($(TARGET),unix)
    63 OPT_CFLAGS = -O2
    57 OPT_CFLAGS = -O2
    64 endif
    58 endif
    65 
    59 
    66 # # # # Options # # # # 
    60 # # # # Options # # # # 
    67 
    61 
    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