Subversion Repositories HelenOS

Rev

Rev 3597 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3597 Rev 4377
Line 27... Line 27...
27
#
27
#
28
 
28
 
29
## Setup toolchain
29
## Setup toolchain
30
#
30
#
31
 
31
 
32
include ../../Makefile.config
-
 
33
 
-
 
34
LIBC_PREFIX = ../../lib/libc
32
LIBC_PREFIX = ../../lib/libc
35
SOFTINT_PREFIX = ../../lib/softint
33
SOFTINT_PREFIX = ../../lib/softint
-
 
34
 
36
include $(LIBC_PREFIX)/Makefile.toolchain
35
include $(LIBC_PREFIX)/Makefile.toolchain
37
 
36
 
38
 
37
 
39
LIBS = libpci/libpci.a $(LIBC_PREFIX)/libc.a
38
LIBS = libpci/libpci.a $(LIBC_PREFIX)/libc.a
40
 
39
 
Line 52... Line 51...
52
all: $(OUTPUT) disasm
51
all: $(OUTPUT) disasm
53
 
52
 
54
-include Makefile.depend
53
-include Makefile.depend
55
 
54
 
56
clean:
55
clean:
57
	-rm -f $(OUTPUT) $(OUTPUT).map $(OUTPUT).disasm Makefile.depend
56
	-rm -f $(OUTPUT) $(OUTPUT).map $(OUTPUT).disasm Makefile.depend $(OBJECTS)
58
	$(MAKE) -C libpci clean
57
	$(MAKE) -C libpci clean
59
 
58
 
60
depend:
59
depend:
61
	$(CC) $(DEFS) $(CFLAGS) -M $(SOURCES) > Makefile.depend
60
	$(CC) $(DEFS) $(CFLAGS) -M $(SOURCES) > Makefile.depend
62
 
61
 
63
$(OUTPUT): $(OBJECTS) $(LIBS)
62
$(OUTPUT): $(OBJECTS) $(LIBS)
64
	$(MAKE) -C libpci
63
	$(MAKE) -C libpci
65
	$(LD) -T $(LIBC_PREFIX)/arch/$(ARCH)/_link.ld $(OBJECTS) $(LIBS) $(LFLAGS) -o $@ -Map $(OUTPUT).map
64
	$(LD) -T $(LIBC_PREFIX)/arch/$(UARCH)/_link.ld $(OBJECTS) $(LIBS) $(LFLAGS) -o $@ -Map $(OUTPUT).map
66
 
65
 
67
disasm:
66
disasm:
68
	$(OBJDUMP) -d $(OUTPUT) >$(OUTPUT).disasm
67
	$(OBJDUMP) -d $(OUTPUT) >$(OUTPUT).disasm
69
 
68
 
70
%.o: %.S
69
%.o: %.S