Subversion Repositories Kolibri OS

Rev

Rev 1969 | Rev 2966 | 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=i586 -fomit-frame-pointer -fno-builtin-printf \
1970 serge 10
-mno-stack-arg-probe -mpreferred-stack-boundary=2 -mincoming-stack-boundary=2
1877 clevermous 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
		linux/string.c		\
1966 serge 30
		malloc/malloc.c		\
1408 serge 31
		stdio/vsprintf.c	\
32
		string/_memmove.S 	\
1627 serge 33
		string/_strncat.S 	\
34
		string/_strncmp.S 	\
35
		string/_strncpy.S 	\
36
		string/_strnlen.S 	\
37
		string/bcmp.S 		\
38
		string/bcopy.S 		\
39
		string/bzero.S 		\
40
		string/index.S 		\
41
		string/memchr.S 	\
42
		string/memcmp.S 	\
43
		string/memcpy.S 	\
44
		string/memmove.S 	\
45
		string/memset.S 	\
46
		string/rindex.S 	\
47
		string/strcat.S 	\
48
		string/strchr.S 	\
49
		string/strcmp.S 	\
50
		string/strcpy.S 	\
51
		string/strlen.S 	\
52
		string/strncat.S 	\
53
		string/strncmp.S 	\
54
		string/strncpy.S 	\
55
		string/strnlen.S 	\
56
		string/strrchr.S
57
1408 serge 58
 
59
 
60
 
61
             $(patsubst %.c, %.o, $(NAME_SRCS))))
62
63
 
64
 
65
66
 
67
68
 
69
 
70
	$(AR) cvrs $@ $(NAME_OBJS)
71
72
 
73
 
74
	$(AS) -o core.o $<
75
	$(LD) -shared -s --out-implib $@ --output-def core.def -o core.dll core.o
76
77
 
78
	$(CC) $(CFLAGS) -o $@ $<
1627 serge 79
1408 serge 80
 
1969 clevermous 81
	$(CC) $(CFLAGS) -o $@ $<
1408 serge 82
83
 
1970 serge 84
	-rm -f */*.o
85
86
 
87