Subversion Repositories Kolibri OS

Rev

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