Subversion Repositories Kolibri OS

Rev

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