Rev 926 | Details | Compare with Previous | Last modification | View Log
Rev | Author | Line No. | Line |
---|---|---|---|
930 | alone | 1 | # Supported environments: |
2 | # GNU/Linux. |
||
3 | # |
||
4 | # Used tools: |
||
5 | # GNU core utilities, GNU sed, tools/aspp, tools/sjasmplus. |
||
6 | |||
7 | include ../_sdk/common.mk |
||
8 | |||
9 | NAME = fatfs.raw |
||
10 | #SOURCES = ff_sj.asm |
||
11 | EXPORTS_FILE = ../kernel/ffsfunc.asm |
||
12 | |||
13 | # All targets |
||
14 | .PHONY: empty all install install-doc clean |
||
15 | |||
16 | .DEFAULT_GOAL=all |
||
17 | |||
18 | empty: |
||
19 | @echo 'Usage: make [ all | install | install-doc | clean ]' |
||
20 | |||
21 | # Clear lists |
||
22 | DEPS= |
||
23 | OBJECTS= |
||
24 | |||
25 | #################### |
||
26 | ## Common targets ## |
||
27 | #################### |
||
28 | |||
29 | fatfs_EXP=ff_sj.exp |
||
30 | |||
31 | #{eval ${call sjasmplus_odd_rule,${NAME} ${fatfs_EXP},${SOURCES},--exp=${fatfs_EXP},DEPS,}} |
||
32 | |||
33 | ${EXPORTS_FILE}: ${fatfs_EXP} |
||
34 | echo '; ${@F} - FatFS calls.' > $@ |
||
35 | echo '; This file is a part of NedoOS project.' >> $@ |
||
36 | echo '; Compatible compiler: sjasmplus.' >> $@ |
||
37 | echo '; This file was generated automatically while building FatFS.' >> $@ |
||
38 | echo 'ffsfunc' >> $@ |
||
39 | sed -re 's/^.+/.&/' $< >> $@ |
||
40 | |||
41 | #all: ${NAME} ${EXPORTS_FILE} |
||
42 | all: ${NAME} |
||
43 | |||
44 | install: all |
||
45 | |||
46 | install-doc: |
||
47 | |||
48 | clean: |
||
49 | ${RM} ${DEPS} ${OBJECTS} ${fatfs_EXP} |
||
50 | # ${RM} ${DEPS} ${OBJECTS} ${fatfs_EXP} ${NAME} ${EXPORTS_FILE} |
||
51 | |||
52 | ################## |
||
53 | ## Dependencies ## |
||
54 | ################## |
||
55 | |||
56 | ifneq "${sort \ |
||
57 | ${filter empty,${MAKECMDGOALS}} \ |
||
58 | ${filter clean,${MAKECMDGOALS}} \ |
||
59 | }" "" |
||
60 | else |
||
61 | # FIXME: Triggered when multiple targets specified. |
||
62 | include ${DEPS} |
||
63 | endif |