Subversion Repositories Kolibri OS

Rev

Rev 1872 | Rev 1966 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
1408 serge 1
 
2
AS = as
3
4
 
5
DRV_INCLUDES = $(DRV_TOPDIR)/include
6
7
 
8
DEFINES  = 	-DKOLIBRI -D__KERNEL__ -DCONFIG_X86_32
9
CFLAGS = 	-c -Os $(INCLUDES) $(DEFINES) -march=i486 -fomit-frame-pointer -fno-builtin-printf \
1877 clevermous 10
-mno-stack-arg-probe -mpreferred-stack-boundary=2 -mincoming-stack-boundary=2
11
1408 serge 12
 
1616 serge 13
1408 serge 14
 
15
16
 
17
 
18
		debug/dbglog.c		\
19
		debug/chkstk.S		\
1872 serge 20
           	io/create.c		\
1408 serge 21
           	io/finfo.c		\
22
           	io/ssize.c		\
23
           	io/write.c		\
24
		linux/idr.c		\
1412 serge 25
		linux/firmware.c	\
26
		linux/list_sort.c	\
27
		linux/dmapool.c		\
1616 serge 28
		linux/ctype.c		\
1869 serge 29
		malloc/malloc.c		\
1408 serge 30
		stdio/vsprintf.c	\
31
		string/_memmove.S 	\
1627 serge 32
		string/_strncat.S 	\
33
		string/_strncmp.S 	\
34
		string/_strncpy.S 	\
35
		string/_strnlen.S 	\
36
		string/bcmp.S 		\
37
		string/bcopy.S 		\
38
		string/bzero.S 		\
39
		string/index.S 		\
40
		string/memchr.S 	\
41
		string/memcmp.S 	\
42
		string/memcpy.S 	\
43
		string/memmove.S 	\
44
		string/memset.S 	\
45
		string/rindex.S 	\
46
		string/strcat.S 	\
47
		string/strchr.S 	\
48
		string/strcmp.S 	\
49
		string/strcpy.S 	\
50
		string/strlen.S 	\
51
		string/strncat.S 	\
52
		string/strncmp.S 	\
53
		string/strncpy.S 	\
54
		string/strnlen.S 	\
55
		string/strrchr.S
56
1408 serge 57
 
58
 
59
 
60
             $(patsubst %.c, %.o, $(NAME_SRCS))))
61
62
 
63
 
64
65
 
66
67
 
68
 
69
	$(AR) cvrs $@ $(NAME_OBJS)
70
71
 
72
 
73
	$(AS) -o core.o $<
74
	$(LD) -shared -s --out-implib $@ --output-def core.def -o core.dll core.o
75
76
 
77
	$(CC) $(CFLAGS) -o $@ $<
1627 serge 78
1408 serge 79
 
80
	$(CC) $(CFLAGS) -o $@ $<
81
82