Subversion Repositories HelenOS

Rev

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

Rev 4377 Rev 4692
Line 30... Line 30...
30
#
30
#
31
 
31
 
32
LIBC_PREFIX = $(shell pwd)
32
LIBC_PREFIX = $(shell pwd)
33
SOFTINT_PREFIX = ../softint
33
SOFTINT_PREFIX = ../softint
34
 
34
 
-
 
35
 
35
## Setup toolchain
36
## Setup toolchain
36
#
37
#
37
 
38
 
38
include $(LIBC_PREFIX)/Makefile.toolchain
39
include $(LIBC_PREFIX)/Makefile.toolchain
39
 
40
 
Line 44... Line 45...
44
GENERIC_SOURCES = \
45
GENERIC_SOURCES = \
45
	generic/libc.c \
46
	generic/libc.c \
46
	generic/ddi.c \
47
	generic/ddi.c \
47
	generic/as.c \
48
	generic/as.c \
48
	generic/cap.c \
49
	generic/cap.c \
49
	generic/console.c \
50
	generic/devmap.c \
50
	generic/event.c \
51
	generic/event.c \
-
 
52
	generic/errno.c \
51
	generic/mem.c \
53
	generic/mem.c \
52
	generic/string.c \
54
	generic/string.c \
53
	generic/fibril.c \
55
	generic/fibril.c \
-
 
56
	generic/fibril_sync.c \
54
	generic/pcb.c \
57
	generic/pcb.c \
55
	generic/smc.c \
58
	generic/smc.c \
56
	generic/thread.c \
59
	generic/thread.c \
57
	generic/tls.c \
60
	generic/tls.c \
58
	generic/task.c \
61
	generic/task.c \
59
	generic/futex.c \
62
	generic/futex.c \
60
	generic/io/asprintf.c \
63
	generic/io/asprintf.c \
61
	generic/io/io.c \
64
	generic/io/io.c \
62
	generic/io/printf.c \
65
	generic/io/printf.c \
63
	generic/io/fprintf.c \
-
 
64
	generic/io/stdio.c \
66
	generic/io/klog.c \
65
	generic/io/stream.c \
-
 
66
	generic/io/sprintf.c \
-
 
67
	generic/io/snprintf.c \
67
	generic/io/snprintf.c \
68
	generic/io/vprintf.c \
68
	generic/io/vprintf.c \
69
	generic/io/vsprintf.c \
-
 
70
	generic/io/vsnprintf.c \
69
	generic/io/vsnprintf.c \
71
	generic/io/printf_core.c \
70
	generic/io/printf_core.c \
-
 
71
	generic/io/console.c \
72
	malloc/malloc.c \
72
	generic/malloc.c \
73
	generic/sysinfo.c \
73
	generic/sysinfo.c \
74
	generic/ipc.c \
74
	generic/ipc.c \
75
	generic/async.c \
75
	generic/async.c \
76
	generic/loader.c \
76
	generic/loader.c \
77
	generic/getopt.c \
77
	generic/getopt.c \
78
	generic/libadt/list.o \
78
	generic/adt/list.o \
79
	generic/libadt/hash_table.o \
79
	generic/adt/hash_table.o \
80
	generic/time.c \
80
	generic/time.c \
81
	generic/err.c \
81
	generic/err.c \
82
	generic/stdlib.c \
82
	generic/stdlib.c \
83
	generic/kbd.c \
-
 
84
	generic/mman.c \
83
	generic/mman.c \
85
	generic/udebug.c \
84
	generic/udebug.c \
86
	generic/vfs/vfs.c \
85
	generic/vfs/vfs.c \
87
	generic/vfs/canonify.c
86
	generic/vfs/canonify.c
88
 
87
 
Line 105... Line 104...
105
 
104
 
106
-include Makefile.depend
105
-include Makefile.depend
107
 
106
 
108
clean:
107
clean:
109
	-rm -f include/kernel include/arch include/libarch libc.a arch/$(UARCH)/_link.ld Makefile.depend
108
	-rm -f include/kernel include/arch include/libarch libc.a arch/$(UARCH)/_link.ld Makefile.depend
110
	find generic/ arch/$(UARCH)/ malloc -name '*.o' -follow -exec rm \{\} \;
109
	find generic/ arch/$(UARCH)/ -name '*.o' -follow -exec rm \{\} \;
111
 
110
 
112
depend: kerninc
111
depend: kerninc
113
	-makedepend -f - -- $(DEPEND_DEFS) $(CFLAGS) -- $(ARCH_SOURCES) $(GENERIC_SOURCES) > Makefile.depend 2> /dev/null
112
	-makedepend -f - -- $(DEPEND_DEFS) $(CFLAGS) -- $(ARCH_SOURCES) $(GENERIC_SOURCES) > Makefile.depend 2> /dev/null
114
 
113
 
115
libc.a: depend $(ARCH_OBJECTS) $(GENERIC_OBJECTS)
114
libc.a: depend $(ARCH_OBJECTS) $(GENERIC_OBJECTS)