Subversion Repositories HelenOS-historic

Rev

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

Rev 1366 Rev 1392
Line 60... Line 60...
60
	generic/io/vsnprintf.c \
60
	generic/io/vsnprintf.c \
61
	generic/io/printf_core.c \
61
	generic/io/printf_core.c \
62
	malloc/malloc.c \
62
	malloc/malloc.c \
63
	generic/psthread.c \
63
	generic/psthread.c \
64
	generic/sysinfo.c \
64
	generic/sysinfo.c \
65
	generic/ipc.c
65
	generic/ipc.c \
-
 
66
	generic/async.c \
-
 
67
	generic/libadt/list.o \
-
 
68
	generic/libadt/hash_table.o
66
 
69
 
67
ARCH_SOURCES += \
70
ARCH_SOURCES += \
68
	arch/$(ARCH)/src/entry.s \
71
	arch/$(ARCH)/src/entry.s \
69
	arch/$(ARCH)/src/thread_entry.s
72
	arch/$(ARCH)/src/thread_entry.s
70
 
73
 
Line 77... Line 80...
77
 
80
 
78
kerninc:
81
kerninc:
79
	ln -sfn ../../../kernel/generic/include include/kernel
82
	ln -sfn ../../../kernel/generic/include include/kernel
80
	ln -sfn kernel/arch include/arch
83
	ln -sfn kernel/arch include/arch
81
	ln -sfn ../arch/$(ARCH)/include include/libarch
84
	ln -sfn ../arch/$(ARCH)/include include/libarch
82
	ln -sfn ../../libadt/include include/libadt
-
 
83
 
85
 
84
-include Makefile.depend
86
-include Makefile.depend
85
 
87
 
86
clean:
88
clean:
87
	-rm -f include/kernel include/arch include/libarch include/libadt libc.a arch/$(ARCH)/_link.ld Makefile.depend
89
	-rm -f include/kernel include/arch include/libarch libc.a arch/$(ARCH)/_link.ld Makefile.depend
88
	find generic/ arch/$(ARCH)/ -name '*.o' -follow -exec rm \{\} \;
90
	find generic/ arch/$(ARCH)/ -name '*.o' -follow -exec rm \{\} \;
89
 
91
 
90
depend: kerninc
92
depend: kerninc
91
	-makedepend $(DEFS) $(CFLAGS) -f - $(ARCH_SOURCES) $(GENERIC_SOURCES) > Makefile.depend 2> /dev/null
93
	-makedepend $(DEFS) $(CFLAGS) -f - $(ARCH_SOURCES) $(GENERIC_SOURCES) > Makefile.depend 2> /dev/null
92
 
94
 
93
libc.a: depend $(ARCH_OBJECTS) $(GENERIC_OBJECTS)
95
libc.a: depend $(ARCH_OBJECTS) $(GENERIC_OBJECTS)
94
	$(AR) rc libc.a $(ARCH_OBJECTS) $(GENERIC_OBJECTS)
96
	$(AR) rc libc.a $(LIBS) $(ARCH_OBJECTS) $(GENERIC_OBJECTS)
95
 
97
 
96
arch/$(ARCH)/_link.ld: arch/$(ARCH)/_link.ld.in
98
arch/$(ARCH)/_link.ld: arch/$(ARCH)/_link.ld.in
97
	$(CC) $(DEFS) $(CFLAGS) -E -x c $< | grep -v "^\#" > $@
99
	$(CC) $(DEFS) $(CFLAGS) -E -x c $< | grep -v "^\#" > $@
98
 
100
 
99
%.o: %.S
101
%.o: %.S