Subversion Repositories HelenOS

Rev

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

Rev 2482 Rev 2528
Line 27... Line 27...
27
#
27
#
28
 
28
 
29
## Common compiler flags
29
## Common compiler flags
30
#
30
#
31
 
31
 
32
LIBC_PREFIX = .
32
LIBC_PREFIX = $(shell pwd)
33
SOFTINT_PREFIX = ../softint
33
SOFTINT_PREFIX = ../softint
34
CONSOLE_PREFIX = ../../srv/console
34
CONSOLE_PREFIX = ../../srv/console
35
 
35
 
36
## Setup toolchain
36
## Setup toolchain
37
#
37
#
Line 101... Line 101...
101
 
101
 
102
libc.a: depend $(ARCH_OBJECTS) $(GENERIC_OBJECTS)
102
libc.a: depend $(ARCH_OBJECTS) $(GENERIC_OBJECTS)
103
	$(AR) rc libc.a $(LIBS) $(ARCH_OBJECTS) $(GENERIC_OBJECTS)
103
	$(AR) rc libc.a $(LIBS) $(ARCH_OBJECTS) $(GENERIC_OBJECTS)
104
 
104
 
105
arch/$(ARCH)/_link.ld: arch/$(ARCH)/_link.ld.in
105
arch/$(ARCH)/_link.ld: arch/$(ARCH)/_link.ld.in
106
	$(CC) $(DEFS) $(CFLAGS) -E -x c $< | grep -v "^\#" > $@
106
	$(CC) $(DEFS) $(CFLAGS) -DLIBC_PREFIX=$(LIBC_PREFIX) -E -x c $< | grep -v "^\#" > $@
107
 
107
 
108
%.o: %.S
108
%.o: %.S
109
	$(CC) $(DEFS) $(AFLAGS) $(CFLAGS) -D__ASM__ -c $< -o $@
109
	$(CC) $(DEFS) $(AFLAGS) $(CFLAGS) -D__ASM__ -c $< -o $@
110
 
110
 
111
%.o: %.s
111
%.o: %.s