Subversion Repositories DevTools

Rev

Rev 227 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 227 Rev 241
Line 36... Line 36...
36
 
36
 
37
cc		= gcc
37
cc		= gcc
38
cc_init 	=
38
cc_init 	=
39
cc_o_switch	= -o $@
39
cc_o_switch	= -o $@
40
cc_source	= $<
40
cc_source	= $<
41
cc_flags	= \
-
 
42
		$(patsubst %,%,$(CFLAGS)) \
41
cc_cmdfile  = $(basename $@).cmd
43
		$(patsubst %,-D%,$(cc_defines)) \
42
cc_flags	= @$(cc_cmdfile)
44
		$(patsubst %,%,$(gcc_flags)) \
-
 
45
		$(patsubst %,-I %,$(INCDIRS)) \
-
 
46
		$(patsubst %,-I %,$(cc_includes)) \
-
 
47
		$(patsubst %,-I %,$(gcc_includes))
-
 
48
cc_term 	= ;				# ';' forces use of 'sh.exe'
43
cc_term 	=
49
 
44
 
50
gcc_includes	+= $(MPTLIB)/Lib/		# Include/xxx.h, must be prior to cygnus
45
gcc_includes	+= $(MPTLIB)/Lib/		# Include/xxx.h, must be prior to cygnus
51
gcc_includes	+= $(MPTLIB)/StdCLib/Include
46
gcc_includes	+= $(MPTLIB)/StdCLib/Include
52
 
47
 
53
gcc_flags	= -mh -c -Wall -ffloat-store -r
48
gcc_flags	= -mh -c -Wall -ffloat-store -r
Line 66... Line 61...
66
ifdef LEAVETMP
61
ifdef LEAVETMP
67
gcc_flags	+= -save-temps
62
gcc_flags	+= -save-temps
68
endif
63
endif
69
 
64
 
70
define cc_pre
65
define cc_pre
71
	@echo [\$<] compiling..
66
	@echo [\$<] compiling.. ; \
-
 
67
    $(cmdfile) -ko$(cc_cmdfile) "\
-
 
68
		$(patsubst %,%,$(CFLAGS)) \
-
 
69
		$(patsubst %,-D%,$(cc_defines)) \
-
 
70
		$(patsubst %,%,$(gcc_flags)) \
-
 
71
		$(patsubst %,-I %,$(INCDIRS)) \
-
 
72
		$(patsubst %,-I %,$(cc_includes)) \
-
 
73
		$(patsubst %,-I %,$(gcc_includes))";
72
endef
74
endef
73
 
75
 
74
define cc_post
76
define cc_post
-
 
77
    @$(rm) -f $(cc_cmdfile)
75
endef
78
endef
76
 
79
 
77
 
80
 
78
###############################################################################
81
###############################################################################
79
#..     C/C++ dependencies
82
#..     C/C++ dependencies