Rev 1869 | Rev 1966 | Go to most recent revision | Only display areas with differences | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1869 | Rev 1872 | ||
---|---|---|---|
1 | CC = gcc |
- | |
2 | AS = as |
1 | CC = gcc |
3 | 2 | AS = as |
|
4 | DRV_TOPDIR = $(CURDIR)/.. |
3 | |
5 | DRV_INCLUDES = $(DRV_TOPDIR)/include |
4 | DRV_TOPDIR = $(CURDIR)/.. |
6 | 5 | DRV_INCLUDES = $(DRV_TOPDIR)/include |
|
7 | INCLUDES = -I$(DRV_INCLUDES) -I$(DRV_INCLUDES)/linux -I$(DRV_INCLUDES)/linux/asm |
6 | |
8 | DEFINES = -DKOLIBRI -D__KERNEL__ -DCONFIG_X86_32 |
7 | INCLUDES = -I$(DRV_INCLUDES) -I$(DRV_INCLUDES)/linux -I$(DRV_INCLUDES)/linux/asm |
9 | CFLAGS = -c -Os $(INCLUDES) $(DEFINES) -march=i486 -fomit-frame-pointer -fno-builtin-printf |
8 | DEFINES = -DKOLIBRI -D__KERNEL__ -DCONFIG_X86_32 |
10 | 9 | CFLAGS = -c -Os $(INCLUDES) $(DEFINES) -march=i486 -fomit-frame-pointer -fno-builtin-printf |
|
11 | NAME:= libddk |
10 | |
12 | 11 | NAME:= libddk |
|
13 | CORE_SRC= core.S |
12 | |
14 | 13 | CORE_SRC= core.S |
|
15 | 14 | ||
16 | NAME_SRCS:= \ |
15 | |
17 | debug/dbglog.c \ |
16 | NAME_SRCS:= \ |
18 | io/create.c \ |
17 | debug/dbglog.c \ |
19 | io/finfo.c \ |
18 | debug/chkstk.S \ |
- | 19 | io/create.c \ |
|
20 | io/ssize.c \ |
20 | io/finfo.c \ |
21 | io/write.c \ |
21 | io/ssize.c \ |
22 | linux/idr.c \ |
22 | io/write.c \ |
23 | linux/firmware.c \ |
23 | linux/idr.c \ |
24 | linux/list_sort.c \ |
24 | linux/firmware.c \ |
25 | linux/dmapool.c \ |
25 | linux/list_sort.c \ |
26 | linux/ctype.c \ |
26 | linux/dmapool.c \ |
27 | malloc/malloc.c \ |
27 | linux/ctype.c \ |
28 | stdio/vsprintf.c \ |
28 | malloc/malloc.c \ |
29 | string/_memmove.S \ |
29 | stdio/vsprintf.c \ |
30 | string/_strncat.S \ |
30 | string/_memmove.S \ |
31 | string/_strncmp.S \ |
31 | string/_strncat.S \ |
32 | string/_strncpy.S \ |
32 | string/_strncmp.S \ |
33 | string/_strnlen.S \ |
33 | string/_strncpy.S \ |
34 | string/bcmp.S \ |
34 | string/_strnlen.S \ |
35 | string/bcopy.S \ |
35 | string/bcmp.S \ |
36 | string/bzero.S \ |
36 | string/bcopy.S \ |
37 | string/index.S \ |
37 | string/bzero.S \ |
38 | string/memchr.S \ |
38 | string/index.S \ |
39 | string/memcmp.S \ |
39 | string/memchr.S \ |
40 | string/memcpy.S \ |
40 | string/memcmp.S \ |
41 | string/memmove.S \ |
41 | string/memcpy.S \ |
42 | string/memset.S \ |
42 | string/memmove.S \ |
43 | string/rindex.S \ |
43 | string/memset.S \ |
44 | string/strcat.S \ |
44 | string/rindex.S \ |
45 | string/strchr.S \ |
45 | string/strcat.S \ |
46 | string/strcmp.S \ |
46 | string/strchr.S \ |
47 | string/strcpy.S \ |
47 | string/strcmp.S \ |
48 | string/strlen.S \ |
48 | string/strcpy.S \ |
49 | string/strncat.S \ |
49 | string/strlen.S \ |
50 | string/strncmp.S \ |
50 | string/strncat.S \ |
51 | string/strncpy.S \ |
51 | string/strncmp.S \ |
52 | string/strnlen.S \ |
52 | string/strncpy.S \ |
53 | string/strrchr.S |
53 | string/strnlen.S \ |
54 | 54 | string/strrchr.S |
|
55 | 55 | ||
56 | 56 | ||
57 | NAME_OBJS = $(patsubst %.S, %.o, $(patsubst %.asm, %.o,\ |
57 | |
58 | $(patsubst %.c, %.o, $(NAME_SRCS)))) |
58 | NAME_OBJS = $(patsubst %.S, %.o, $(patsubst %.asm, %.o,\ |
59 | 59 | $(patsubst %.c, %.o, $(NAME_SRCS)))) |
|
60 | 60 | ||
61 | TARGET = $(NAME).a |
61 | |
62 | 62 | TARGET = $(NAME).a |
|
63 | all: $(TARGET) libcore.a |
63 | |
64 | 64 | all: $(TARGET) libcore.a |
|
65 | 65 | ||
66 | $(TARGET): $(NAME_OBJS) $(NAME_SRC) Makefile |
66 | |
67 | $(AR) cvrs $@ $(NAME_OBJS) |
67 | $(TARGET): $(NAME_OBJS) $(NAME_SRC) Makefile |
68 | 68 | $(AR) cvrs $@ $(NAME_OBJS) |
|
69 | 69 | ||
70 | libcore.a: core.S Makefile |
70 | |
71 | $(AS) -o core.o $< |
71 | libcore.a: core.S Makefile |
72 | $(LD) -shared -s --out-implib $@ --output-def core.def -o core.dll core.o |
72 | $(AS) -o core.o $< |
73 | 73 | $(LD) -shared -s --out-implib $@ --output-def core.def -o core.dll core.o |
|
74 | %.o: %.S Makefile |
74 | |
75 | $(CC) $(CFLAGS) -o $@ $< |
75 | %.o: %.S Makefile |
76 | 76 | $(CC) $(CFLAGS) -o $@ $< |
|
77 | %.o: %.c Makefile |
77 | |
78 | $(CC) $(CFLAGS) -o $@ $<> |
78 | %.o: %.c Makefile |
79 | 79 | $(CC) $(CFLAGS) -o $@ $<> |
|
80 | %.o:> |
80 | |
81 | > |
81 | %.o:> |
- | 82 | > |