Rev 1408 | Rev 1616 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
1408 | serge | 1 | |
2 | |||
1412 | serge | 3 | |
1408 | serge | 4 | DRV_TOPDIR = $(CURDIR)/.. |
5 | DRV_INCLUDES = $(DRV_TOPDIR)/include |
||
6 | |||
7 | INCLUDES = -I$(DRV_INCLUDES) -I$(DRV_INCLUDES)/linux -I$(DRV_INCLUDES)/linux/asm |
||
8 | DEFINES = -DKOLIBRI -D__KERNEL__ -DCONFIG_X86_32 |
||
9 | |||
10 | |||
11 | NAME:= libdrv |
||
12 | |||
13 | |||
14 | |||
15 | |||
16 | NAME_SRCS:= \ |
||
17 | |||
18 | |||
19 | io/finfo.c \ |
||
20 | io/ssize.c \ |
||
21 | io/write.c \ |
||
22 | linux/idr.c \ |
||
23 | linux/firmware.c \ |
||
24 | linux/list_sort.c \ |
||
1412 | serge | 25 | malloc/malloc.c \ |
26 | stdio/icompute.c \ |
||
27 | stdio/vsprintf.c \ |
||
1408 | serge | 28 | stdio/doprnt.c \ |
29 | stdio/chartab.c \ |
||
30 | string/_memmove.S \ |
||
31 | string/_strncat.S \ |
||
32 | string/_strncmp.S \ |
||
33 | string/_strncpy.S \ |
||
34 | string/_strnlen.S \ |
||
35 | string/memcpy.S \ |
||
36 | string/memcmp.S \ |
||
37 | string/memset.S \ |
||
38 | string/strcat.S \ |
||
39 | string/strchr.S \ |
||
40 | string/strcpy.S \ |
||
41 | string/strncpy.S \ |
||
42 | string/strncmp.S \ |
||
43 | string/strlen.S |
||
44 | |||
45 | |||
46 | |||
47 | |||
48 | |||
49 | |||
50 | |||
51 | TARGET = $(NAME).a |
||
52 | |||
53 | |||
54 | |||
55 | |||
56 | $(TARGET): $(NAME_OBJS) $(NAME_SRC) Makefile |
||
57 | |||
58 | |||
59 | |||
60 | libcore.a: core.S Makefile |
||
61 | |||
62 | |||
63 | |||
64 | %.o: %.S Makefile |
||
65 | $(AS) -o $@ $< |
||
66 | |||
67 | %.o: %.c Makefile |
||
68 | $(CC) $(CFLAGS) -o $@ $<> |
||
69 | |||
70 | %.o:> |
||
71 | > |
||
72 |