Subversion Repositories svn.mios32

Rev

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