Subversion Repositories HelenOS

Rev

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

Rev 3386 Rev 4153
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
LIBFS_PREFIX = ../../../lib/libfs
33
LIBFS_PREFIX = ../../../lib/libfs
-
 
34
LIBBLOCK_PREFIX = ../../../lib/libblock
34
SOFTINT_PREFIX = ../../../lib/softint
35
SOFTINT_PREFIX = ../../../lib/softint
-
 
36
 
35
include $(LIBC_PREFIX)/Makefile.toolchain
37
include $(LIBC_PREFIX)/Makefile.toolchain
36
 
38
 
37
CFLAGS += -I $(LIBFS_PREFIX)
39
CFLAGS += -I $(LIBFS_PREFIX) -I $(LIBBLOCK_PREFIX)
38
 
40
 
-
 
41
LIBS = \
39
LIBS = $(LIBC_PREFIX)/libc.a $(LIBFS_PREFIX)/libfs.a
42
	$(LIBFS_PREFIX)/libfs.a \
-
 
43
	$(LIBBLOCK_PREFIX)/libblock.a \
-
 
44
	$(LIBC_PREFIX)/libc.a
40
 
45
 
41
## Sources
46
## Sources
42
#
47
#
43
 
48
 
44
OUTPUT = tmpfs
49
OUTPUT = tmpfs
Line 54... Line 59...
54
all: $(OUTPUT) $(OUTPUT).disasm
59
all: $(OUTPUT) $(OUTPUT).disasm
55
 
60
 
56
-include Makefile.depend
61
-include Makefile.depend
57
 
62
 
58
clean:
63
clean:
59
	-rm -f $(OUTPUT) $(OUTPUT).map $(OUTPUT).disasm Makefile.depend
64
	-rm -f $(OUTPUT) $(OUTPUT).map $(OUTPUT).disasm Makefile.depend $(OBJECTS)
60
 
65
 
61
depend:
66
depend:
62
	$(CC) $(DEFS) $(CFLAGS) -M $(SOURCES) > Makefile.depend
67
	$(CC) $(DEFS) $(CFLAGS) -M $(SOURCES) > Makefile.depend
63
 
68
 
64
$(OUTPUT): $(OBJECTS) $(LIBS)
69
$(OUTPUT): $(OBJECTS) $(LIBS)
65
	$(LD) -T $(LIBC_PREFIX)/arch/$(ARCH)/_link.ld $(OBJECTS) $(LIBS) $(LFLAGS) -o $@ -Map $(OUTPUT).map
70
	$(LD) -T $(LIBC_PREFIX)/arch/$(UARCH)/_link.ld $(OBJECTS) $(LIBS) $(LFLAGS) -o $@ -Map $(OUTPUT).map
66
 
71
 
67
disasm: $(OUTPUT).disasm
72
disasm: $(OUTPUT).disasm
68
 
73
 
69
$(OUTPUT).disasm: $(OUTPUT)
74
$(OUTPUT).disasm: $(OUTPUT)
70
	$(OBJDUMP) -d $< >$@
75
	$(OBJDUMP) -d $< >$@