Subversion Repositories Kolibri OS

Rev

Rev 5217 | Only display areas with differences | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 5217 Rev 5221
1
export CC = kos32-gcc
1
export CC = kos32-gcc
2
export AR = kos32-ar
2
export AR = kos32-ar
3
export LD = kos32-ld
3
export LD = kos32-ld
4
export STRIP = kos32-strip
4
export STRIP = kos32-strip
5
 
5
 
6
export SDK_DIR:= $(abspath ../../sdk)
6
export SDK_DIR:= $(abspath ../../sdk)
7
 
7
 
8
 
8
 
9
CFLAGS_OPT = -U_Win32 -U_WIN32 -U__MINGW32__ -UWIN32 -U_MSC_VER -O2 
9
CFLAGS_OPT = -U_Win32 -U_WIN32 -U__MINGW32__ -UWIN32 -U_MSC_VER -O2 
10
CFLAGS_OPT+= -fomit-frame-pointer -fno-ident -mno-ms-bitfields
10
CFLAGS_OPT+= -fomit-frame-pointer -fno-ident -mno-ms-bitfields
11
CFLAGS_OPT+= -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic
11
CFLAGS_OPT+= -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes -pedantic
12
CFLAGS   = -c $(CFLAGS_OPT)
12
CFLAGS   = -c $(CFLAGS_OPT)
13
 
13
 
14
LDFLAGS = -nostdlib -shared -s --image-base 0 -T ../newlib/dll.lds -e _DllStartup
14
LDFLAGS = -nostdlib -shared -s --image-base 0 -T ../newlib/dll.lds -e _DllStartup
15
LDFLAGS+= --out-implib
15
LDFLAGS+= --out-implib
16
 
16
 
17
SUBDIRS = libiberty bfd binutils ld
17
SUBDIRS = libiberty bfd opcodes binutils gas ld
18
 
18
 
19
# targets 
19
# targets 
20
 
20
 
21
all:
21
all:
22
	@echo $(SDK_DIR);	\
22
	@echo $(SDK_DIR);	\
23
	for i in $(SUBDIRS); do	\
23
	for i in $(SUBDIRS); do	\
24
	$(MAKE) -C $$i;		\
24
	$(MAKE) -C $$i;		\
25
	done
25
	done