Subversion Repositories svn.mios32

Rev

Rev 152 | Rev 154 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
10 tk 1
# $Id: mios32.mk 153 2008-12-02 00:46:46Z tk $
2
# defines additional rules for MIOS32
3
 
23 tk 4
# enhance include path
152 tk 5
C_INCLUDE +=	-I $(MIOS32_PATH)/include/mios32
10 tk 6
 
69 tk 7
# forward MIOS32 environment variables to preprocessor
8
CFLAGS    +=    -DMIOS32_PROCESSOR_$(PROCESSOR) \
9
		-DMIOS32_FAMILY_$(FAMILY) \
10
		-DMIOS32_BOARD_$(BOARD)
23 tk 11
 
69 tk 12
 
29 tk 13
# add modules to thumb sources
14
# TODO: provide makefile option to add code to ARM sources
23 tk 15
THUMB_SOURCE += \
146 tk 16
	$(MIOS32_PATH)/mios32/common/mios32_din.c \
17
	$(MIOS32_PATH)/mios32/common/mios32_dout.c \
18
	$(MIOS32_PATH)/mios32/common/mios32_enc.c \
19
	$(MIOS32_PATH)/mios32/common/mios32_lcd.c \
20
	$(MIOS32_PATH)/mios32/common/mios32_midi.c \
21
	$(MIOS32_PATH)/mios32/common/mios32_com.c \
22
	$(MIOS32_PATH)/mios32/common/mios32_uart_midi.c \
23
	$(MIOS32_PATH)/mios32/common/mios32_iic_bs.c \
153 tk 24
	$(MIOS32_PATH)/mios32/$(FAMILY)/mios32_sys.c \
25
	$(MIOS32_PATH)/mios32/$(FAMILY)/mios32_irq.c \
26
	$(MIOS32_PATH)/mios32/$(FAMILY)/mios32_srio.c \
27
	$(MIOS32_PATH)/mios32/$(FAMILY)/mios32_iic_midi.c \
28
	$(MIOS32_PATH)/mios32/$(FAMILY)/mios32_i2s.c \
29
	$(MIOS32_PATH)/mios32/$(FAMILY)/mios32_board.c \
30
	$(MIOS32_PATH)/mios32/$(FAMILY)/mios32_timer.c \
31
	$(MIOS32_PATH)/mios32/$(FAMILY)/mios32_delay.c \
32
	$(MIOS32_PATH)/mios32/$(FAMILY)/mios32_sdcard.c \
33
	$(MIOS32_PATH)/mios32/$(FAMILY)/mios32_ain.c \
34
	$(MIOS32_PATH)/mios32/$(FAMILY)/mios32_mf.c \
35
	$(MIOS32_PATH)/mios32/$(FAMILY)/mios32_usb.c \
36
	$(MIOS32_PATH)/mios32/$(FAMILY)/mios32_usb_midi.c \
37
	$(MIOS32_PATH)/mios32/$(FAMILY)/mios32_usb_com.c \
38
	$(MIOS32_PATH)/mios32/$(FAMILY)/mios32_uart.c \
39
	$(MIOS32_PATH)/mios32/$(FAMILY)/mios32_iic.c
23 tk 40
 
27 tk 41
# MEMO: the gcc linker is clever enough to exclude functions from the final memory image
42
# if they are not references from the main routine - accordingly we can savely include
43
# the USB drivers without the danger that this increases the project size of applications,
44
# which don't use the USB peripheral at all :-)
23 tk 45
 
27 tk 46
 
152 tk 47
# add family specific files
48
include $(MIOS32_PATH)/mios32/$(FAMILY)/mios32_family.mk
49
 
50
 
10 tk 51
# directories and files that should be part of the distribution (release) package
152 tk 52
DIST += $(MIOS32_PATH)/mios32/common \
53
        $(MIOS32_PATH)/mios32/mios32.mk \
54
        $(MIOS32_PATH)/include/mios32