Rev 3803 | Rev 4417 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3803 | Rev 3883 | ||
---|---|---|---|
Line 25... | Line 25... | ||
25 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
25 | # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
26 | # THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
26 | # THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
27 | # |
27 | # |
28 | 28 | ||
29 | include ../../../../version |
29 | include ../../../../version |
30 | include ../../../../Makefile.config |
30 | -include ../../../../Makefile.config |
31 | 31 | ||
32 | ## Toolchain configuration |
32 | ## Toolchain configuration |
33 | # |
33 | # |
34 | 34 | ||
35 | ifndef CROSS_PREFIX |
35 | ifndef CROSS_PREFIX |
Line 55... | Line 55... | ||
55 | LD = $(TOOLCHAIN_DIR)/$(TARGET)-ld |
55 | LD = $(TOOLCHAIN_DIR)/$(TARGET)-ld |
56 | OBJCOPY = $(TOOLCHAIN_DIR)/$(TARGET)-objcopy |
56 | OBJCOPY = $(TOOLCHAIN_DIR)/$(TARGET)-objcopy |
57 | OBJDUMP = $(TOOLCHAIN_DIR)/$(TARGET)-objdump |
57 | OBJDUMP = $(TOOLCHAIN_DIR)/$(TARGET)-objdump |
58 | endif |
58 | endif |
59 | 59 | ||
60 | CFLAGS = -DRELEASE=\"$(RELEASE)\" -I. -I../../../generic -I../../.. -nostdinc -nostdlib -fno-builtin -Werror-implicit-function-declaration -Wmissing-prototypes -Werror -O3 -pipe |
60 | CFLAGS = -DRELEASE=$(RELEASE) -I. -I../../../generic -I../../.. -imacros ../../../../config.h -nostdinc -nostdlib -fno-builtin -Werror-implicit-function-declaration -Wmissing-prototypes -Werror -O3 -pipe |
61 | - | ||
62 | ifdef REVISION |
- | |
63 | CFLAGS += "-DREVISION=\"$(REVISION)\"" |
- | |
64 | endif |
- | |
65 | - | ||
66 | ifdef TIMESTAMP |
- | |
67 | CFLAGS += "-DTIMESTAMP=\"$(TIMESTAMP)\"" |
- | |
68 | endif |
- | |
69 | - | ||
70 | ifdef MACHINE |
- | |
71 | CFLAGS += "-DMACHINE=$(MACHINE)" |
- | |
72 | endif |
- | |
73 | 61 | ||
74 | SOURCES = \ |
62 | SOURCES = \ |
75 | main.c \ |
63 | main.c \ |
76 | boot.S \ |
64 | boot.S \ |
77 | asm.S \ |
65 | asm.S \ |