Subversion Repositories HelenOS

Rev

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

Rev 3803 Rev 3882
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
CFLAGS += -I../libipc/include
37
CFLAGS += -I../libipc/include
39
 
38
 
40
LIBS =  $(LIBC_PREFIX)/libc.a
39
LIBS =  $(LIBC_PREFIX)/libc.a
Line 44... Line 43...
44
 
43
 
45
OUTPUT = devmap
44
OUTPUT = devmap
46
SOURCES = \
45
SOURCES = \
47
	devmap.c 
46
	devmap.c 
48
 
47
 
49
CFLAGS += -D$(ARCH)
48
CFLAGS += -D$(UARCH)
50
 
49
 
51
OBJECTS := $(addsuffix .o,$(basename $(SOURCES)))
50
OBJECTS := $(addsuffix .o,$(basename $(SOURCES)))
52
 
51
 
53
.PHONY: all clean depend disasm
52
.PHONY: all clean depend disasm
54
 
53
 
Line 61... Line 60...
61
 
60
 
62
depend:
61
depend:
63
	$(CC) $(DEFS) $(CFLAGS) -M $(SOURCES) > Makefile.depend
62
	$(CC) $(DEFS) $(CFLAGS) -M $(SOURCES) > Makefile.depend
64
 
63
 
65
$(OUTPUT): $(OBJECTS) $(LIBS)
64
$(OUTPUT): $(OBJECTS) $(LIBS)
66
	$(LD) -T $(LIBC_PREFIX)/arch/$(ARCH)/_link.ld $(OBJECTS) $(LIBS) $(LFLAGS) -o $@ -Map $(OUTPUT).map
65
	$(LD) -T $(LIBC_PREFIX)/arch/$(UARCH)/_link.ld $(OBJECTS) $(LIBS) $(LFLAGS) -o $@ -Map $(OUTPUT).map
67
 
66
 
68
disasm: $(OUTPUT).disasm
67
disasm: $(OUTPUT).disasm
69
 
68
 
70
$(OUTPUT).disasm: $(OUTPUT)
69
$(OUTPUT).disasm: $(OUTPUT)
71
	$(OBJDUMP) -d $< >$@
70
	$(OBJDUMP) -d $< >$@