source: anotherchoice/tags/jsp-1.4.4-full-UTF8/config/sh3/Makefile.config@ 26

Last change on this file since 26 was 26, checked in by ykominami, 10 years ago

initial

File size: 1.3 KB
Line 
1#
2#@(#) $Id: Makefile.config,v 1.10 2004/09/04 16:17:50 honda Exp $
3#
4
5#
6# Makefile のプロセッサ依存 (SH3/4用)
7#
8
9#
10# ターゲットアーキテクチャの定義
11#
12TARGET = sh-hitachi-elf
13
14#
15# コンパイルオプション
16#
17INCLUDES := $(INCLUDES) -I$(CONFIGDIR)/$(CPU)
18COPTS := $(COPTS) -g -O2
19CDEFS := $(CDEFS) -DLABEL_ASM
20
21#
22# カーネルに関する定義
23#
24KERNEL_DIR := $(KERNEL_DIR) $(CONFIGDIR)/$(CPU)
25KERNEL_ASMOBJS := $(KERNEL_ASMOBJS) cpu_support.o
26KERNEL_COBJS := $(KERNEL_COBJS) cpu_config.o
27
28
29ifeq ($(DBGENV),PARTNER_J)
30CDEFS := $(CDEFS) -DNO_SLEEP
31endif
32
33
34#
35# スタートアップモジュールに関する定義
36#
37ifdef USE_CXX
38 START_OBJS = start.o $(shell $(CC) $(COPTS) -print-file-name=crti.o | sed -e 's/\\/\//g') $(shell $(CC) $(COPTS) -print-file-name=crtbegin.o | sed -e 's/\\/\//g')
39 END_OBJS = $(shell $(CC) $(COPTS) -print-file-name=crtend.o | sed -e 's/\\/\//g') $(shell $(CC) $(COPTS) -print-file-name=crtn.o | sed -e 's/\\/\//g')
40else
41 START_OBJS = start.o
42 END_OBJS =
43endif
44
45$(START_OBJS):
46$(START_OBJS:.o=.d):
47
48start.o: start.S
49 $(CC) -c $(CFLAGS) $(KERNEL_CFLAGS) $<
50
51start.d: start.S
52 @$(PERL) $(SRCDIR)/utils/makedep -C $(CC) \
53 -O "$(CFLAGS) $(KERNEL_CFLAGS)" $< >> Makefile.depend
54
55$(END_OBJS):
56$(END_OBJS:.o=.d):
57
Note: See TracBrowser for help on using the repository browser.