Rev 1412 | Go to most recent revision | Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
1408 | serge | 1 | |
2 | |||
3 | |||
4 | DRV_TOPDIR = $(CURDIR)/.. |
||
5 | |||
6 | |||
7 | INCLUDES = -I$(DRV_INCLUDES) -I$(DRV_INCLUDES)/linux -I$(DRV_INCLUDES)/linux/asm |
||
8 | |||
9 | CFLAGS = -c -O2 $(INCLUDES) $(DEFINES) -fomit-frame-pointer -fno-builtin-printf |
||
10 | |||
11 | NAME:= libdrv |
||
12 | |||
13 | CORE_SRC= core.S |
||
14 | |||
15 | |||
16 | |||
17 | |||
18 | io/create.c \ |
||
19 | io/finfo.c \ |
||
20 | io/ssize.c \ |
||
21 | io/write.c \ |
||
22 | malloc/malloc.c \ |
||
23 | stdio/icompute.c \ |
||
24 | stdio/vsprintf.c \ |
||
25 | stdio/doprnt.c \ |
||
26 | stdio/chartab.c \ |
||
27 | string/_memmove.S \ |
||
28 | string/_strncat.S \ |
||
29 | string/_strncmp.S \ |
||
30 | string/_strncpy.S \ |
||
31 | string/_strnlen.S \ |
||
32 | string/memcpy.S \ |
||
33 | string/memcmp.S \ |
||
34 | string/memset.S \ |
||
35 | string/strcat.S \ |
||
36 | string/strchr.S \ |
||
37 | string/strcpy.S \ |
||
38 | string/strncpy.S \ |
||
39 | string/strncmp.S \ |
||
40 | string/strlen.S |
||
41 | |||
42 | |||
43 | |||
44 | |||
45 | |||
46 | |||
47 | |||
48 | |||
49 | |||
50 | all: $(TARGET) libcore.a |
||
51 | |||
52 | |||
53 | |||
54 | |||
55 | |||
56 | |||
57 | |||
58 | |||
59 | $(LD) -shared -s --out-implib $@ --output-def core.def -o core.dll core.o |
||
60 | |||
61 | %.o: %.S Makefile |
||
62 | |||
63 | |||
64 | %.o: %.c Makefile |
||
65 | |||
66 | |||
67 | %.o:> |
||
68 |