Subversion Repositories HelenOS

Rev

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

Rev 2801 Rev 3018
Line 31... Line 31...
31
 
31
 
32
LIBC_PREFIX = ../../lib/libc
32
LIBC_PREFIX = ../../lib/libc
33
SOFTINT_PREFIX = ../../lib/softint
33
SOFTINT_PREFIX = ../../lib/softint
34
include $(LIBC_PREFIX)/Makefile.toolchain
34
include $(LIBC_PREFIX)/Makefile.toolchain
35
 
35
 
36
CFLAGS += -I../../srv/kbd/include
36
CFLAGS += -I../../srv/kbd/include -ggdb
37
 
37
 
38
LIBS = $(LIBC_PREFIX)/libc.a
38
LIBS = $(LIBC_PREFIX)/libc.a
39
 
39
 
40
## Sources
40
## Sources
41
#
41
#
Line 63... Line 63...
63
all: $(OUTPUT) disasm
63
all: $(OUTPUT) disasm
64
 
64
 
65
-include Makefile.depend
65
-include Makefile.depend
66
 
66
 
67
clean:
67
clean:
68
	-rm -f $(OUTPUT) $(OUTPUT).map $(OUTPUT).disasm Makefile.depend
68
	-rm -f $(OUTPUT) $(OBJECTS) $(OUTPUT).map $(OUTPUT).disasm Makefile.depend
69
 
69
 
70
depend:
70
depend:
71
	$(CC) $(DEFS) $(CFLAGS) -M $(SOURCES) > Makefile.depend
71
	$(CC) $(DEFS) $(CFLAGS) -M $(SOURCES) > Makefile.depend
72
 
72
 
73
$(OUTPUT): $(OBJECTS) $(LIBS)
73
$(OUTPUT): $(OBJECTS) $(LIBS)
74
	$(LD) -T $(LIBC_PREFIX)/arch/$(ARCH)/_link.ld $(OBJECTS) $(LIBS) $(LFLAGS) -o $@ -Map $(OUTPUT).map
74
	$(LD) -T $(LIBC_PREFIX)/arch/$(ARCH)/_link.ld $(OBJECTS) $(LIBS) $(LFLAGS) -o $@ -Map $(OUTPUT).map
75
 
75
 
76
disasm:
76
disasm:
77
	$(OBJDUMP) -d $(OUTPUT) >$(OUTPUT).disasm
77
	$(OBJDUMP) -d -S $(OUTPUT) >$(OUTPUT).disasm
78
 
78
 
79
%.o: %.S
79
%.o: %.S
80
	$(CC) $(DEFS) $(AFLAGS) $(CFLAGS) -D__ASM__ -c $< -o $@
80
	$(CC) $(DEFS) $(AFLAGS) $(CFLAGS) -D__ASM__ -c $< -o $@
81
 
81
 
82
%.o: %.s
82
%.o: %.s