Subversion Repositories svn.mios32

Rev

Rev 230 | Rev 259 | 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 233 2009-01-02 11:18:33Z 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) \
233 tk 10
		-DMIOS32_FAMILY_STR=\"$(FAMILY)\" \
230 tk 11
		-DMIOS32_BOARD_$(BOARD) \
233 tk 12
		-DMIOS32_BOARD_STR=\"$(BOARD)\"
23 tk 13
 
69 tk 14
 
29 tk 15
# add modules to thumb sources
16
# TODO: provide makefile option to add code to ARM sources
23 tk 17
THUMB_SOURCE += \
146 tk 18
	$(MIOS32_PATH)/mios32/common/mios32_din.c \
19
	$(MIOS32_PATH)/mios32/common/mios32_dout.c \
20
	$(MIOS32_PATH)/mios32/common/mios32_enc.c \
21
	$(MIOS32_PATH)/mios32/common/mios32_lcd.c \
22
	$(MIOS32_PATH)/mios32/common/mios32_midi.c \
23
	$(MIOS32_PATH)/mios32/common/mios32_com.c \
24
	$(MIOS32_PATH)/mios32/common/mios32_uart_midi.c \
25
	$(MIOS32_PATH)/mios32/common/mios32_iic_bs.c \
227 tk 26
	$(MIOS32_PATH)/mios32/$(FAMILY)/mios32_bsl.c \
153 tk 27
	$(MIOS32_PATH)/mios32/$(FAMILY)/mios32_sys.c \
28
	$(MIOS32_PATH)/mios32/$(FAMILY)/mios32_irq.c \
29
	$(MIOS32_PATH)/mios32/$(FAMILY)/mios32_srio.c \
30
	$(MIOS32_PATH)/mios32/$(FAMILY)/mios32_iic_midi.c \
31
	$(MIOS32_PATH)/mios32/$(FAMILY)/mios32_i2s.c \
32
	$(MIOS32_PATH)/mios32/$(FAMILY)/mios32_board.c \
33
	$(MIOS32_PATH)/mios32/$(FAMILY)/mios32_timer.c \
34
	$(MIOS32_PATH)/mios32/$(FAMILY)/mios32_delay.c \
35
	$(MIOS32_PATH)/mios32/$(FAMILY)/mios32_sdcard.c \
36
	$(MIOS32_PATH)/mios32/$(FAMILY)/mios32_ain.c \
37
	$(MIOS32_PATH)/mios32/$(FAMILY)/mios32_mf.c \
38
	$(MIOS32_PATH)/mios32/$(FAMILY)/mios32_usb.c \
39
	$(MIOS32_PATH)/mios32/$(FAMILY)/mios32_usb_midi.c \
40
	$(MIOS32_PATH)/mios32/$(FAMILY)/mios32_usb_com.c \
41
	$(MIOS32_PATH)/mios32/$(FAMILY)/mios32_uart.c \
229 tk 42
	$(MIOS32_PATH)/mios32/$(FAMILY)/mios32_iic.c \
43
	$(MIOS32_PATH)/mios32/common/printf-stdarg.c
23 tk 44
 
229 tk 45
 
27 tk 46
# MEMO: the gcc linker is clever enough to exclude functions from the final memory image
47
# if they are not references from the main routine - accordingly we can savely include
48
# the USB drivers without the danger that this increases the project size of applications,
49
# which don't use the USB peripheral at all :-)
23 tk 50
 
27 tk 51
 
152 tk 52
# add family specific files
53
include $(MIOS32_PATH)/mios32/$(FAMILY)/mios32_family.mk
54
 
55
 
10 tk 56
# directories and files that should be part of the distribution (release) package
152 tk 57
DIST += $(MIOS32_PATH)/mios32/common \
58
        $(MIOS32_PATH)/mios32/mios32.mk \
154 tk 59
        $(MIOS32_PATH)/include/mios32 \
60
        $(MIOS32_PATH)/doc/mios32