Subversion Repositories svn.mios32

Rev

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