Subversion Repositories svn.mios32

Rev

Rev 2651 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
10 tk 1
# $Id: mios32.mk 2654 2019-01-08 12:22:42Z Antichambre $
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 \
1921 tk 29
	$(MIOS32_PATH)/mios32/common/mios32_spi_midi.c \
389 tk 30
	$(MIOS32_PATH)/mios32/common/mios32_iic_midi.c \
2651 Antichambr 31
	$(MIOS32_PATH)/mios32/common/mios32_can_midi.c \
146 tk 32
	$(MIOS32_PATH)/mios32/common/mios32_iic_bs.c \
386 tk 33
	$(MIOS32_PATH)/mios32/common/mios32_mf.c \
359 tk 34
	$(MIOS32_PATH)/mios32/common/mios32_sdcard.c \
362 tk 35
	$(MIOS32_PATH)/mios32/common/mios32_enc28j60.c \
1910 tk 36
	$(MIOS32_PATH)/mios32/common/mios32_timestamp.c \
227 tk 37
	$(MIOS32_PATH)/mios32/$(FAMILY)/mios32_bsl.c \
153 tk 38
	$(MIOS32_PATH)/mios32/$(FAMILY)/mios32_sys.c \
39
	$(MIOS32_PATH)/mios32/$(FAMILY)/mios32_irq.c \
358 tk 40
	$(MIOS32_PATH)/mios32/$(FAMILY)/mios32_spi.c \
153 tk 41
	$(MIOS32_PATH)/mios32/$(FAMILY)/mios32_i2s.c \
42
	$(MIOS32_PATH)/mios32/$(FAMILY)/mios32_board.c \
43
	$(MIOS32_PATH)/mios32/$(FAMILY)/mios32_timer.c \
259 tk 44
	$(MIOS32_PATH)/mios32/$(FAMILY)/mios32_stopwatch.c \
153 tk 45
	$(MIOS32_PATH)/mios32/$(FAMILY)/mios32_delay.c \
46
	$(MIOS32_PATH)/mios32/$(FAMILY)/mios32_ain.c \
47
	$(MIOS32_PATH)/mios32/$(FAMILY)/mios32_usb.c \
48
	$(MIOS32_PATH)/mios32/$(FAMILY)/mios32_usb_midi.c \
49
	$(MIOS32_PATH)/mios32/$(FAMILY)/mios32_usb_com.c \
50
	$(MIOS32_PATH)/mios32/$(FAMILY)/mios32_uart.c \
229 tk 51
	$(MIOS32_PATH)/mios32/$(FAMILY)/mios32_iic.c \
2651 Antichambr 52
	$(MIOS32_PATH)/mios32/$(FAMILY)/mios32_can.c \
229 tk 53
	$(MIOS32_PATH)/mios32/common/printf-stdarg.c
23 tk 54
 
229 tk 55
 
27 tk 56
# MEMO: the gcc linker is clever enough to exclude functions from the final memory image
57
# if they are not references from the main routine - accordingly we can savely include
58
# the USB drivers without the danger that this increases the project size of applications,
59
# which don't use the USB peripheral at all :-)
23 tk 60
 
27 tk 61
 
152 tk 62
# add family specific files
63
include $(MIOS32_PATH)/mios32/$(FAMILY)/mios32_family.mk
64
 
65
 
10 tk 66
# directories and files that should be part of the distribution (release) package
152 tk 67
DIST += $(MIOS32_PATH)/mios32/common \
68
        $(MIOS32_PATH)/mios32/mios32.mk \
154 tk 69
        $(MIOS32_PATH)/include/mios32 \
70
        $(MIOS32_PATH)/doc/mios32