Subversion Repositories HelenOS

Rev

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

Rev 2927 Rev 3563
Line 29... Line 29...
29
## Setup toolchain
29
## Setup toolchain
30
#
30
#
31
 
31
 
32
LIBC_PREFIX = ../../lib/libc
32
LIBC_PREFIX = ../../lib/libc
33
SOFTINT_PREFIX = ../../lib/softint
33
SOFTINT_PREFIX = ../../lib/softint
-
 
34
RTLD_PREFIX = ../../lib/rtld
34
include $(LIBC_PREFIX)/Makefile.toolchain
35
include $(LIBC_PREFIX)/Makefile.toolchain
-
 
36
include $(LIBC_PREFIX)/Makefile.app
35
 
37
 
36
 
-
 
37
LIBS = libpci/libpci.a $(LIBC_PREFIX)/libc.a
38
LIBS += libpci/libpci.a
38
 
39
 
39
## Sources
40
## Sources
40
#
41
#
41
 
42
 
42
OUTPUT = pci
43
OUTPUT = pci
Line 58... Line 59...
58
depend:
59
depend:
59
	$(CC) $(DEFS) $(CFLAGS) -M $(SOURCES) > Makefile.depend
60
	$(CC) $(DEFS) $(CFLAGS) -M $(SOURCES) > Makefile.depend
60
 
61
 
61
$(OUTPUT): $(OBJECTS) $(LIBS)
62
$(OUTPUT): $(OBJECTS) $(LIBS)
62
	$(MAKE) -C libpci
63
	$(MAKE) -C libpci
63
	$(LD) -T $(LIBC_PREFIX)/arch/$(ARCH)/_link.ld $(OBJECTS) $(LIBS) $(LFLAGS) -o $@ -Map $(OUTPUT).map
64
	$(LD) -T $(LD_SCRIPT) $(OBJECTS) $(LIBS) $(LFLAGS) -o $@ -Map $(OUTPUT).map
64
 
65
 
65
disasm:
66
disasm:
66
	$(OBJDUMP) -d $(OUTPUT) >$(OUTPUT).disasm
67
	$(OBJDUMP) -d $(OUTPUT) >$(OUTPUT).disasm
67
 
68
 
68
%.o: %.S
69
%.o: %.S