Subversion Repositories Kolibri OS

Rev

Rev 8759 | Rev 9952 | Go to most recent revision | Only display areas with differences | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 8759 Rev 8879
1
CC = kos32-gcc
1
CC = kos32-gcc
2
AR = kos32-ar
2
AR = kos32-ar
3
LD = kos32-ld
3
LD = kos32-ld
4
 
4
 
5
INSTALLDIR:= /home/autobuild/tools/win32/mingw32
5
INSTALLDIR:= /home/autobuild/tools/win32/mingw32
6
 
6
 
7
CFLAGS = -c -O2 -fno-builtin -fno-ident -fomit-frame-pointer -DMISSING_SYSCALL_NAMES
7
CFLAGS = -c -O2 -fno-builtin -fno-ident -fomit-frame-pointer -DMISSING_SYSCALL_NAMES
8
LDFLAGS = -shared -s -T libcdll.lds --out-implib libc.dll.a --image-base 0 
8
LDFLAGS = -shared -s -T libcdll.lds --out-implib libc.dll.a --image-base 0 
9
#LDFLAGS+= --output-def libc.orig.def
9
#LDFLAGS+= --output-def libc.orig.def
10
ARFLAGS = crs
10
ARFLAGS = crs
11
 
11
 
12
SDK_DIR:= $(abspath ../../..)
12
SDK_DIR:= $(abspath ../../..)
13
 
13
 
14
LIBC_TOPDIR   = .
14
LIBC_TOPDIR   = .
15
LIBC_INCLUDES = $(LIBC_TOPDIR)/include
15
LIBC_INCLUDES = $(LIBC_TOPDIR)/include
16
 
16
 
17
NAME:=	  libc
17
NAME:=	  libc
18
 
18
 
19
DEFINES:= -U__WIN32__ -U_Win32 -U_WIN32 -U__MINGW32__ -U_MSC_VER
19
DEFINES:= -U__WIN32__ -U_Win32 -U_WIN32 -U__MINGW32__ -U_MSC_VER
20
DEFINES+= -D_MB_EXTENDED_CHARSETS_WINDOWS=1
20
DEFINES+= -D_MB_EXTENDED_CHARSETS_WINDOWS=1
21
DEFINES+= -D_IEEE_LIBM -DHAVE_RENAME -DBUILD_LIBC -DPACKAGE_NAME=\"newlib\"
21
DEFINES+= -D_IEEE_LIBM -DHAVE_RENAME -DBUILD_LIBC -DPACKAGE_NAME=\"newlib\"
22
DEFINES+= -DPACKAGE_TARNAME=\"newlib\" -DPACKAGE_VERSION=\"2.4.0\"
22
DEFINES+= -DPACKAGE_TARNAME=\"newlib\" -DPACKAGE_VERSION=\"2.4.0\"
23
SEFINES+= -DPACKAGE_STRING=\"newlib\ 2.4.0\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\"
23
SEFINES+= -DPACKAGE_STRING=\"newlib\ 2.4.0\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\"
24
 
24
 
25
INCLUDES:=  -I $(LIBC_INCLUDES)
25
INCLUDES:=  -I $(LIBC_INCLUDES)
26
 
26
 
27
STATIC_SRCS:=					\
27
STATIC_SRCS:=					\
28
         		crt/start.S		\
28
         		crt/start.S		\
29
         		crt/crt1.c		\
29
         		crt/crt1.c		\
30
			crt/crt2.c		\
30
			crt/crt2.c		\
31
         		crt/exit.S
31
         		crt/exit.S
32
 
32
 
33
LIBDLL_SRCS:=					\
33
LIBDLL_SRCS:=					\
34
			crt/dllstart.c 		\
34
			crt/dllstart.c 		\
35
         		crt/exit.S           	\
35
         		crt/exit.S           	\
36
			crt/pseudo-reloc.c	\
36
			crt/pseudo-reloc.c	\
37
			crt/setjmp.S
37
			crt/setjmp.S
38
 
38
 
39
 
39
 
40
LIBCDLL_SRCS:=					\
40
LIBCDLL_SRCS:=					\
41
			crt/crtdll.c		\
41
			crt/crtdll.c		\
42
			crt/crt2.c		\
42
			crt/crt2.c		\
43
			crt/pseudo-reloc.c	\
43
			crt/pseudo-reloc.c	\
44
			crt/exit.S		\
44
			crt/exit.S		\
45
			pe/loader.c
45
			pe/loader.c
46
 
46
 
47
CORE_SRCS:=                   			\
47
CORE_SRCS:=                   			\
48
			argz/buf_findstr.c	\
48
			argz/buf_findstr.c	\
49
			argz/envz_get.c		\
49
			argz/envz_get.c		\
50
			crt/console.asm		\
50
			crt/console.asm		\
51
			crt/gthr-kos32.c	\
51
			crt/gthr-kos32.c	\
52
			crt/thread.S         	\
52
			crt/thread.S         	\
53
			crt/setjmp.S		\
53
			crt/setjmp.S		\
54
			crt/cpu_features.c	\
54
			crt/cpu_features.c	\
55
			crt/tls.c		\
55
			crt/tls.c		\
56
			ctype/ctype_.c 		\
56
			ctype/ctype_.c 		\
57
			ctype/isascii.c		\
57
			ctype/isascii.c		\
58
			ctype/isblank.c		\
58
			ctype/isblank.c		\
59
			ctype/isalnum.c      	\
59
			ctype/isalnum.c      	\
60
			ctype/isalpha.c      	\
60
			ctype/isalpha.c      	\
61
			ctype/iscntrl.c      	\
61
			ctype/iscntrl.c      	\
62
			ctype/isdigit.c      	\
62
			ctype/isdigit.c      	\
63
			ctype/islower.c      	\
63
			ctype/islower.c      	\
64
			ctype/isupper.c      	\
64
			ctype/isupper.c      	\
65
			ctype/isprint.c      	\
65
			ctype/isprint.c      	\
66
			ctype/ispunct.c      	\
66
			ctype/ispunct.c      	\
67
			ctype/isspace.c      	\
67
			ctype/isspace.c      	\
68
			ctype/iswctype.c     	\
68
			ctype/iswctype.c     	\
69
			ctype/iswalnum.c     	\
69
			ctype/iswalnum.c     	\
70
			ctype/iswalpha.c     	\
70
			ctype/iswalpha.c     	\
71
			ctype/iswblank.c     	\
71
			ctype/iswblank.c     	\
72
			ctype/iswcntrl.c     	\
72
			ctype/iswcntrl.c     	\
73
    		ctype/iswdigit.c     	\
73
    		ctype/iswdigit.c     	\
74
    		ctype/iswgraph.c     	\
74
    		ctype/iswgraph.c     	\
75
    		ctype/iswlower.c     	\
75
    		ctype/iswlower.c     	\
76
    		ctype/iswprint.c     	\
76
    		ctype/iswprint.c     	\
77
    		ctype/iswpunct.c     	\
77
    		ctype/iswpunct.c     	\
78
    		ctype/iswspace.c     	\
78
    		ctype/iswspace.c     	\
79
    		ctype/iswupper.c     	\
79
    		ctype/iswupper.c     	\
80
    		ctype/iswxdigit.c    	\
80
    		ctype/iswxdigit.c    	\
81
    		ctype/isxdigit.c     	\
81
    		ctype/isxdigit.c     	\
82
			ctype/jp2uc.c		\
82
			ctype/jp2uc.c		\
83
			ctype/toascii.c		\
83
			ctype/toascii.c		\
84
			ctype/tolower.c      	\
84
			ctype/tolower.c      	\
85
			ctype/toupper.c		\
85
			ctype/toupper.c		\
86
			ctype/towctrans.c    	\
86
			ctype/towctrans.c    	\
87
			ctype/towlower.c     	\
87
			ctype/towlower.c     	\
88
			ctype/towupper.c     	\
88
			ctype/towupper.c     	\
89
			ctype/wctrans.c		\
89
			ctype/wctrans.c		\
90
			ctype/wctype.c       	\
90
			ctype/wctype.c       	\
91
			errno/errno.c        	\
91
			errno/errno.c        	\
92
			locale/locale.c		\
92
			locale/locale.c		\
93
			locale/lctype.c		\
93
			locale/lctype.c		\
94
			locale/ldpart.c		\
94
			locale/ldpart.c		\
95
			reent/closer.c       	\
95
			reent/closer.c       	\
96
			reent/fstatr.c       	\
96
			reent/fstatr.c       	\
97
			reent/getreent.c     	\
97
			reent/getreent.c     	\
98
			reent/gettimeofdayr.c	\
98
			reent/gettimeofdayr.c	\
99
			reent/impure.c       	\
99
			reent/impure.c       	\
100
			reent/init_reent.c	\
100
			reent/init_reent.c	\
101
			reent/isattyr.c		\
101
			reent/isattyr.c		\
102
			reent/linkr.c		\
102
			reent/linkr.c		\
103
			reent/lseekr.c       	\
103
			reent/lseekr.c       	\
104
			reent/mutex.c		\
104
			reent/mutex.c		\
105
			reent/openr.c        	\
105
			reent/openr.c        	\
106
			reent/readr.c        	\
106
			reent/readr.c        	\
107
			reent/renamer.c		\
107
			reent/renamer.c		\
108
			reent/statr.c		\
108
			reent/statr.c		\
109
			reent/timesr.c		\
109
			reent/timesr.c		\
110
			reent/unlinkr.c		\
110
			reent/unlinkr.c		\
111
			reent/writer.c       	\
111
			reent/writer.c       	\
112
			search/qsort.c       	\
112
			search/qsort.c       	\
113
			search/bsearch.c     	\
113
			search/bsearch.c     	\
114
			signal/signal.c		\
114
			signal/signal.c		\
115
			sys/access.c		\
115
			sys/access.c		\
116
			sys/clock_gettime.c	\
116
			sys/clock_gettime.c	\
117
			sys/close.c		\
117
			sys/close.c		\
118
			sys/conio.c		\
118
			sys/conio.c		\
119
			sys/create.c         	\
119
			sys/create.c         	\
120
			sys/errno.c		\
120
			sys/errno.c		\
121
			sys/finfo.c          	\
121
			sys/finfo.c          	\
122
			sys/fsize.c          	\
122
			sys/fsize.c          	\
123
			sys/fstat.c		\
123
			sys/fstat.c		\
124
			sys/gettod.c		\
124
			sys/gettod.c		\
125
			sys/io.c		\
125
			sys/io.c		\
126
			sys/ioread.c		\
126
			sys/ioread.c		\
127
			sys/iowrite.c		\
127
			sys/iowrite.c		\
128
			sys/isatty.c		\
128
			sys/isatty.c		\
129
			sys/lseek.c		\
129
			sys/lseek.c		\
130
			sys/open.c		\
130
			sys/open.c		\
131
			sys/read.c           	\
131
			sys/read.c           	\
132
			sys/_rename.c		\
132
			sys/_rename.c		\
133
			sys/stat.c		\
133
			sys/stat.c		\
134
			sys/unlink.c		\
134
			sys/unlink.c		\
135
			sys/write.c          	\
135
			sys/write.c          	\
136
			sys/io_alloc.S		\
136
			sys/io_alloc.S		\
137
			time/asctime.c       	\
137
			time/asctime.c       	\
138
			time/asctime_r.c     	\
138
			time/asctime_r.c     	\
139
			time/clock.c         	\
139
			time/clock.c         	\
140
			time/ctime.c         	\
140
			time/ctime.c         	\
141
			time/ctime_r.c       	\
141
			time/ctime_r.c       	\
142
			time/difftime.c		\
142
			time/difftime.c		\
143
			time/gettzinfo.c     	\
143
			time/gettzinfo.c     	\
144
			time/gmtime.c        	\
144
			time/gmtime.c        	\
145
			time/gmtime_r.c		\
145
			time/gmtime_r.c		\
146
			time/mktime.c        	\
146
			time/mktime.c        	\
147
			time/month_lengths.c	\
147
			time/month_lengths.c	\
148
			time/lcltime.c       	\
148
			time/lcltime.c       	\
149
			time/lcltime_r.c     	\
149
			time/lcltime_r.c     	\
150
			time/strftime.c		\
150
			time/strftime.c		\
151
			time/time.c          	\
151
			time/time.c          	\
152
			time/tzcalc_limits.c	\
152
			time/tzcalc_limits.c	\
153
			time/timelocal.c	\
153
			time/timelocal.c	\
154
			time/tzlock.c        	\
154
			time/tzlock.c        	\
155
			time/tzset.c		\
155
			time/tzset.c		\
156
			time/tzset_r.c		\
156
			time/tzset_r.c		\
157
			time/tzvars.c
157
			time/tzvars.c
158
 
158
 
159
 
159
 
160
STDLIB_SRCS=                 			\
160
STDLIB_SRCS=                 			\
161
    		__atexit.c          	\
161
    		__atexit.c          	\
162
    		__call_atexit.c     	\
162
    		__call_atexit.c     	\
163
    		abort.c              	\
163
    		abort.c              	\
164
    		abs.c               	\
164
    		abs.c               	\
165
			assert.c		\
165
			assert.c		\
166
			atexit.c		\
166
			atexit.c		\
167
    		atof.c              	\
167
    		atof.c              	\
168
    		atoi.c              	\
168
    		atoi.c              	\
169
			atol.c			\
169
			atol.c			\
170
			btowc.c			\
170
			btowc.c			\
171
    		calloc.c             	\
171
    		calloc.c             	\
172
			cxa_atexit.c		\
172
			cxa_atexit.c		\
173
			cxa_finalize.c		\
173
			cxa_finalize.c		\
174
    		div.c               	\
174
    		div.c               	\
175
    		dtoa.c               	\
175
    		dtoa.c               	\
176
    		dtoastub.c          	\
176
    		dtoastub.c          	\
177
			efgcvt.c		\
177
			efgcvt.c		\
178
			ecvtbuf.c		\
178
			ecvtbuf.c		\
179
			eprintf.c		\
179
			eprintf.c		\
180
			erand48.c		\
180
			erand48.c		\
181
    		exit.c              	\
181
    		exit.c              	\
182
    		gdtoa-gethex.c      	\
182
    		gdtoa-gethex.c      	\
183
    		gdtoa-hexnan.c       	\
183
    		gdtoa-hexnan.c       	\
184
    		getenv.c             	\
184
    		getenv.c             	\
185
			getenv_r.c		\
185
			getenv_r.c		\
186
			itoa.c			\
186
			itoa.c			\
187
			ldiv.c			\
187
			ldiv.c			\
188
			labs.c			\
188
			labs.c			\
189
			ldtoa.c			\
189
			ldtoa.c			\
190
         		malloc.c             	\
190
         		malloc.c             	\
191
        		mallocr.c           	\
191
        		mallocr.c           	\
192
			mblen.c			\
192
			mblen.c			\
193
			mblen_r.c		\
193
			mblen_r.c		\
194
			mbrlen.c		\
194
			mbrlen.c		\
195
         		mbrtowc.c           	\
195
         		mbrtowc.c           	\
196
			mbsinit.c		\
196
			mbsinit.c		\
197
			mbsnrtowcs.c		\
197
			mbsnrtowcs.c		\
198
			mbsrtowcs.c		\
198
			mbsrtowcs.c		\
199
			mbstowcs.c		\
199
			mbstowcs.c		\
200
			mbstowcs_r.c		\
200
			mbstowcs_r.c		\
201
			mbtowc.c		\
201
			mbtowc.c		\
202
			mbtowc_r.c		\
202
			mbtowc_r.c		\
203
         		mlock.c              	\
203
         		mlock.c              	\
204
         		mprec.c              	\
204
         		mprec.c              	\
205
        		rand.c               	\
205
        		rand.c               	\
206
         		rand_r.c            	\
206
         		rand_r.c            	\
207
         		rand48.c            	\
207
         		rand48.c            	\
208
			random.c		\
208
			random.c		\
209
         		realloc.c            	\
209
         		realloc.c            	\
210
			sb_charsets.c		\
210
			sb_charsets.c		\
211
         		seed48.c             	\
211
         		seed48.c             	\
212
         		srand48.c            	\
212
         		srand48.c            	\
213
         		strtod.c            	\
213
         		strtod.c            	\
214
			strtodg.c		\
214
			strtodg.c		\
215
         		strtol.c             	\
215
         		strtol.c             	\
216
         		strtold.c            	\
216
         		strtold.c            	\
217
         		strtoll.c            	\
217
         		strtoll.c            	\
218
         		strtoll_r.c         	\
218
         		strtoll_r.c         	\
219
			strtorx.c		\
219
			strtorx.c		\
220
         		strtoul.c            	\
220
         		strtoul.c            	\
221
         		strtoull.c           	\
221
         		strtoull.c           	\
222
         		strtoull_r.c        	\
222
         		strtoull_r.c        	\
223
         		system.c            	\
223
         		system.c            	\
224
			utoa.c			\
224
			utoa.c			\
225
         		wcrtomb.c           	\
225
         		wcrtomb.c           	\
226
			wcsnrtombs.c		\
226
			wcsnrtombs.c		\
227
			wcsrtombs.c		\
227
			wcsrtombs.c		\
228
			wcstod.c		\
228
			wcstod.c		\
229
			wcstol.c		\
229
			wcstol.c		\
230
			wcstold.c		\
230
			wcstold.c		\
231
			wcstoll.c		\
231
			wcstoll.c		\
232
			wcstoll_r.c		\
232
			wcstoll_r.c		\
233
			wcstombs.c		\
233
			wcstombs.c		\
234
			wcstombs_r.c		\
234
			wcstombs_r.c		\
235
			wcstoul.c		\
235
			wcstoul.c		\
236
			wcstoull.c		\
236
			wcstoull.c		\
237
			wcstoull_r.c		\
237
			wcstoull_r.c		\
238
			wctob.c			\
238
			wctob.c			\
239
			wctomb.c		\
239
			wctomb.c		\
240
			wctomb_r.c
240
			wctomb_r.c
241
 
241
 
242
 
242
 
243
STRING_SRCS= \
243
STRING_SRCS= \
244
			bcmp.c			\
244
			bcmp.c			\
245
			bcopy.c			\
245
			bcopy.c			\
246
			bzero.c			\
246
			bzero.c			\
247
			explicit_bzero.c	\
247
			explicit_bzero.c	\
248
			gnu_basename.c		\
248
			gnu_basename.c		\
249
			index.c			\
249
			index.c			\
250
			memccpy.c		\
250
			memccpy.c		\
251
			memchr.c		\
251
			memchr.c		\
252
			memcmp.c		\
252
			memcmp.c		\
253
			memcpy.c		\
253
			memcpy.c		\
254
			memmem.c		\
254
			memmem.c		\
255
			memmove.c		\
255
			memmove.c		\
256
			mempcpy.c		\
256
			mempcpy.c		\
257
			memrchr.c		\
257
			memrchr.c		\
258
			memset.c		\
258
			memset.c		\
259
			rawmemchr.c		\
259
			rawmemchr.c		\
260
			rindex.c		\
260
			rindex.c		\
261
			stpcpy.c		\
261
			stpcpy.c		\
262
			stpncpy.c		\
262
			stpncpy.c		\
263
			strcasecmp.c		\
263
			strcasecmp.c		\
264
			strcasestr.c		\
264
			strcasestr.c		\
265
			strcat.c		\
265
			strcat.c		\
266
			strchr.c		\
266
			strchr.c		\
267
			strchrnul.c		\
267
			strchrnul.c		\
268
			strcmp.c		\
268
			strcmp.c		\
269
			strcoll.c		\
269
			strcoll.c		\
270
			strcpy.c		\
270
			strcpy.c		\
271
			strcspn.c		\
271
			strcspn.c		\
272
			strdup.c		\
272
			strdup.c		\
273
			strdup_r.c		\
273
			strdup_r.c		\
274
			strerror.c		\
274
			strerror.c		\
275
			strerror_r.c		\
275
			strerror_r.c		\
276
			strlcat.c		\
276
			strlcat.c		\
277
			strlcpy.c		\
277
			strlcpy.c		\
278
			strlen.c		\
278
			strlen.c		\
279
			strlwr.c		\
279
			strlwr.c		\
280
			strncasecmp.c		\
280
			strncasecmp.c		\
281
			strncat.c		\
281
			strncat.c		\
282
			strncmp.c		\
282
			strncmp.c		\
283
			strncpy.c		\
283
			strncpy.c		\
284
			strndup.c		\
284
			strndup.c		\
285
			strndup_r.c		\
285
			strndup_r.c		\
286
			strnlen.c		\
286
			strnlen.c		\
287
			strpbrk.c		\
287
			strpbrk.c		\
288
			strrchr.c		\
288
			strrchr.c		\
289
			strsep.c		\
289
			strsep.c		\
290
			strspn.c		\
290
			strspn.c		\
291
			strstr.c		\
291
			strstr.c		\
292
			strtok.c		\
292
			strtok.c		\
293
			strtok_r.c		\
293
			strtok_r.c		\
294
			strupr.c		\
294
			strupr.c		\
295
			strxfrm.c		\
295
			strxfrm.c		\
296
			swab.c			\
296
			swab.c			\
297
			u_strerr.c		\
297
			u_strerr.c		\
298
			wcpcpy.c		\
298
			wcpcpy.c		\
299
			wcpncpy.c		\
299
			wcpncpy.c		\
300
			wcscasecmp.c		\
300
			wcscasecmp.c		\
301
			wcscat.c		\
301
			wcscat.c		\
302
			wcschr.c		\
302
			wcschr.c		\
303
			wcscmp.c		\
303
			wcscmp.c		\
304
			wcscoll.c		\
304
			wcscoll.c		\
305
			wcscpy.c		\
305
			wcscpy.c		\
306
			wcscspn.c		\
306
			wcscspn.c		\
307
			wcsdup.c		\
307
			wcsdup.c		\
308
			wcslcat.c		\
308
			wcslcat.c		\
309
			wcslcpy.c		\
309
			wcslcpy.c		\
310
			wcslen.c		\
310
			wcslen.c		\
311
			wcsncasecmp.c		\
311
			wcsncasecmp.c		\
312
			wcsncat.c		\
312
			wcsncat.c		\
313
			wcsncmp.c		\
313
			wcsncmp.c		\
314
			wcsncpy.c		\
314
			wcsncpy.c		\
315
			wcsnlen.c		\
315
			wcsnlen.c		\
316
			wcspbrk.c		\
316
			wcspbrk.c		\
317
			wcsrchr.c		\
317
			wcsrchr.c		\
318
			wcsspn.c		\
318
			wcsspn.c		\
319
			wcsstr.c		\
319
			wcsstr.c		\
320
			wcstok.c		\
320
			wcstok.c		\
321
			wcswidth.c		\
321
			wcswidth.c		\
322
			wcsxfrm.c		\
322
			wcsxfrm.c		\
323
			wcwidth.c		\
323
			wcwidth.c		\
324
			wmemchr.c		\
324
			wmemchr.c		\
325
			wmemcmp.c		\
325
			wmemcmp.c		\
326
			wmemcpy.c		\
326
			wmemcpy.c		\
327
			wmemmove.c		\
327
			wmemmove.c		\
328
			wmemset.c
328
			wmemset.c		\
-
 
329
			dirname.c		
329
 
330
 
330
 
331
 
331
STDIO_SRCS=					\
332
STDIO_SRCS=					\
332
			asiprintf.c		\
333
			asiprintf.c		\
333
			asniprintf.c		\
334
			asniprintf.c		\
334
			asnprintf.c		\
335
			asnprintf.c		\
335
			asprintf.c		\
336
			asprintf.c		\
336
			clearerr.c		\
337
			clearerr.c		\
337
			clearerr_u.c		\
338
			clearerr_u.c		\
338
			diprintf.c		\
339
			diprintf.c		\
339
			dprintf.c		\
340
			dprintf.c		\
340
			fclose.c		\
341
			fclose.c		\
341
			fcloseall.c		\
342
			fcloseall.c		\
342
			fdopen.c		\
343
			fdopen.c		\
343
			feof.c			\
344
			feof.c			\
344
			feof_u.c		\
345
			feof_u.c		\
345
			ferror.c		\
346
			ferror.c		\
346
			ferror_u.c		\
347
			ferror_u.c		\
347
			fflush.c		\
348
			fflush.c		\
348
			fflush_u.c		\
349
			fflush_u.c		\
349
			fgetc.c			\
350
			fgetc.c			\
350
			fgetc_u.c		\
351
			fgetc_u.c		\
351
			fgetpos.c		\
352
			fgetpos.c		\
352
			fgets.c			\
353
			fgets.c			\
353
			fgets_u.c		\
354
			fgets_u.c		\
354
			fgetwc.c		\
355
			fgetwc.c		\
355
			fgetwc_u.c		\
356
			fgetwc_u.c		\
356
			fgetws.c		\
357
			fgetws.c		\
357
			fgetws_u.c		\
358
			fgetws_u.c		\
358
			fileno.c		\
359
			fileno.c		\
359
			fileno_u.c		\
360
			fileno_u.c		\
360
			findfp.c		\
361
			findfp.c		\
361
			fiprintf.c		\
362
			fiprintf.c		\
362
			fiscanf.c		\
363
			fiscanf.c		\
363
			flags.c			\
364
			flags.c			\
364
			fmemopen.c		\
365
			fmemopen.c		\
365
			fopen.c			\
366
			fopen.c			\
366
			fopencookie.c		\
367
			fopencookie.c		\
367
			fprintf.c		\
368
			fprintf.c		\
368
			fpurge.c		\
369
			fpurge.c		\
369
			fputc.c			\
370
			fputc.c			\
370
			fputc_u.c		\
371
			fputc_u.c		\
371
			fputs.c			\
372
			fputs.c			\
372
			fputs_u.c		\
373
			fputs_u.c		\
373
			fputwc.c		\
374
			fputwc.c		\
374
			fputwc_u.c		\
375
			fputwc_u.c		\
375
			fputws.c		\
376
			fputws.c		\
376
			fputws_u.c		\
377
			fputws_u.c		\
377
			fsetpos.c		\
378
			fsetpos.c		\
378
			funopen.c		\
379
			funopen.c		\
379
			fread.c			\
380
			fread.c			\
380
			fread_u.c		\
381
			fread_u.c		\
381
			freopen.c		\
382
			freopen.c		\
382
			fscanf.c		\
383
			fscanf.c		\
383
			fseek.c			\
384
			fseek.c			\
384
			fseeko.c		\
385
			fseeko.c		\
385
			fsetlocking.c		\
386
			fsetlocking.c		\
386
			ftell.c			\
387
			ftell.c			\
387
			ftello.c		\
388
			ftello.c		\
388
			fvwrite.c		\
389
			fvwrite.c		\
389
			fwalk.c			\
390
			fwalk.c			\
390
			fwide.c			\
391
			fwide.c			\
391
			fwprintf.c		\
392
			fwprintf.c		\
392
			fwrite.c		\
393
			fwrite.c		\
393
			fwrite_u.c		\
394
			fwrite_u.c		\
394
			fwscanf.c		\
395
			fwscanf.c		\
395
			getc.c			\
396
			getc.c			\
396
			getc_u.c		\
397
			getc_u.c		\
397
			getchar.c		\
398
			getchar.c		\
398
			getchar_u.c		\
399
			getchar_u.c		\
399
			getdelim.c		\
400
			getdelim.c		\
400
			getline.c		\
401
			getline.c		\
401
			gets.c			\
402
			gets.c			\
402
			getw.c			\
403
			getw.c			\
403
			getwc.c			\
404
			getwc.c			\
404
			getwc_u.c		\
405
			getwc_u.c		\
405
			getwchar.c		\
406
			getwchar.c		\
406
			getwchar_u.c		\
407
			getwchar_u.c		\
407
			iprintf.c		\
408
			iprintf.c		\
408
			iscanf.c		\
409
			iscanf.c		\
409
			makebuf.c		\
410
			makebuf.c		\
410
			mktemp.c		\
411
			mktemp.c		\
411
			open_memstream.c	\
412
			open_memstream.c	\
412
			perror.c		\
413
			perror.c		\
413
			printf.c		\
414
			printf.c		\
414
			putc.c			\
415
			putc.c			\
415
			putc_u.c		\
416
			putc_u.c		\
416
			putchar.c		\
417
			putchar.c		\
417
			putchar_u.c		\
418
			putchar_u.c		\
418
			puts.c			\
419
			puts.c			\
419
			putw.c			\
420
			putw.c			\
420
			putwc.c			\
421
			putwc.c			\
421
			putwc_u.c		\
422
			putwc_u.c		\
422
			putwchar.c		\
423
			putwchar.c		\
423
			putwchar_u.c		\
424
			putwchar_u.c		\
424
			refill.c		\
425
			refill.c		\
425
			remove.c		\
426
			remove.c		\
426
			rename.c		\
427
			rename.c		\
427
			rewind.c		\
428
			rewind.c		\
428
			rget.c			\
429
			rget.c			\
429
			scanf.c			\
430
			scanf.c			\
430
			sccl.c			\
431
			sccl.c			\
431
			setbuf.c		\
432
			setbuf.c		\
432
			setbuffer.c		\
433
			setbuffer.c		\
433
			setlinebuf.c		\
434
			setlinebuf.c		\
434
			setvbuf.c		\
435
			setvbuf.c		\
435
			siprintf.c		\
436
			siprintf.c		\
436
			siscanf.c		\
437
			siscanf.c		\
437
			sniprintf.c		\
438
			sniprintf.c		\
438
			snprintf.c		\
439
			snprintf.c		\
439
			sprintf.c		\
440
			sprintf.c		\
440
			sscanf.c		\
441
			sscanf.c		\
441
			stdio.c			\
442
			stdio.c			\
442
			stdio_ext.c		\
443
			stdio_ext.c		\
443
			swprintf.c		\
444
			swprintf.c		\
444
			swscanf.c		\
445
			swscanf.c		\
445
			tmpfile.c		\
446
			tmpfile.c		\
446
			tmpnam.c		\
447
			tmpnam.c		\
447
			ungetc.c		\
448
			ungetc.c		\
448
			ungetwc.c		\
449
			ungetwc.c		\
449
			vasiprintf.c		\
450
			vasiprintf.c		\
450
			vasniprintf.c		\
451
			vasniprintf.c		\
451
			vasnprintf.c		\
452
			vasnprintf.c		\
452
			vasprintf.c		\
453
			vasprintf.c		\
453
			vdiprintf.c		\
454
			vdiprintf.c		\
454
			vdprintf.c		\
455
			vdprintf.c		\
455
			vfwscanf.c		\
456
			vfwscanf.c		\
456
			viprintf.c		\
457
			viprintf.c		\
457
			viscanf.c		\
458
			viscanf.c		\
458
			vprintf.c		\
459
			vprintf.c		\
459
			vscanf.c		\
460
			vscanf.c		\
460
			vsiprintf.c		\
461
			vsiprintf.c		\
461
			vsiscanf.c		\
462
			vsiscanf.c		\
462
			vsprintf.c		\
463
			vsprintf.c		\
463
			vsniprintf.c		\
464
			vsniprintf.c		\
464
			vsnprintf.c		\
465
			vsnprintf.c		\
465
			vsscanf.c		\
466
			vsscanf.c		\
466
			vswprintf.c		\
467
			vswprintf.c		\
467
			vswscanf.c		\
468
			vswscanf.c		\
468
			vwprintf.c		\
469
			vwprintf.c		\
469
			vwscanf.c		\
470
			vwscanf.c		\
470
			wbuf.c			\
471
			wbuf.c			\
471
			wprintf.c		\
472
			wprintf.c		\
472
			wscanf.c		\
473
			wscanf.c		\
473
			wsetup.c
474
			wsetup.c
474
 
475
 
475
DIRENT_SRCS=	dir.c \
476
DIRENT_SRCS=	dir.c \
476
		closedir.c \
477
		closedir.c \
477
		opendir.c \
478
		opendir.c \
478
		readdir.c \
479
		readdir.c \
479
		rewinddir.c \
480
		rewinddir.c \
480
		seekdir.c \
481
		seekdir.c \
481
		telldir.c \
482
		telldir.c \
482
		scandir.c \
483
		scandir.c \
483
		alphasort.c	
484
		alphasort.c	
484
 
485
 
485
MATH_SRCS = 	e_acos.c e_acosh.c e_asin.c e_atan2.c e_atanh.c e_cosh.c e_exp.c e_fmod.c	\
486
MATH_SRCS = 	e_acos.c e_acosh.c e_asin.c e_atan2.c e_atanh.c e_cosh.c e_exp.c e_fmod.c	\
486
		e_hypot.c e_j0.c e_j1.c e_jn.c e_log.c e_log10.c e_pow.c e_rem_pio2.c 		\
487
		e_hypot.c e_j0.c e_j1.c e_jn.c e_log.c e_log10.c e_pow.c e_rem_pio2.c 		\
487
		e_remainder.c e_scalb.c e_sinh.c e_sqrt.c ef_acos.c ef_acosh.c ef_asin.c	\
488
		e_remainder.c e_scalb.c e_sinh.c e_sqrt.c ef_acos.c ef_acosh.c ef_asin.c	\
488
		ef_atan2.c ef_atanh.c ef_cosh.c ef_exp.c ef_fmod.c ef_hypot.c ef_j0.c ef_j1.c	\
489
		ef_atan2.c ef_atanh.c ef_cosh.c ef_exp.c ef_fmod.c ef_hypot.c ef_j0.c ef_j1.c	\
489
		ef_jn.c ef_log.c ef_log10.c ef_pow.c ef_rem_pio2.c ef_remainder.c ef_scalb.c	\
490
		ef_jn.c ef_log.c ef_log10.c ef_pow.c ef_rem_pio2.c ef_remainder.c ef_scalb.c	\
490
		ef_sinh.c ef_sqrt.c er_gamma.c er_lgamma.c erf_gamma.c erf_lgamma.c f_exp.c	\
491
		ef_sinh.c ef_sqrt.c er_gamma.c er_lgamma.c erf_gamma.c erf_lgamma.c f_exp.c	\
491
		f_expf.c f_llrint.c f_llrintf.c f_llrintl.c f_lrint.c f_lrintf.c f_lrintl.c	\
492
		f_expf.c f_llrint.c f_llrintf.c f_llrintl.c f_lrint.c f_lrintf.c f_lrintl.c	\
492
		f_pow.c f_powf.c f_rint.c f_rintf.c f_rintl.c feclearexcept.c fetestexcept.c	\
493
		f_pow.c f_powf.c f_rint.c f_rintf.c f_rintl.c feclearexcept.c fetestexcept.c	\
493
		k_cos.c	k_rem_pio2.c k_sin.c k_standard.c k_tan.c kf_cos.c kf_rem_pio2.c	\
494
		k_cos.c	k_rem_pio2.c k_sin.c k_standard.c k_tan.c kf_cos.c kf_rem_pio2.c	\
494
		kf_sin.c kf_tan.c s_asinh.c s_atan.c s_cbrt.c s_ceil.c s_copysign.c s_cos.c	\
495
		kf_sin.c kf_tan.c s_asinh.c s_atan.c s_cbrt.c s_ceil.c s_copysign.c s_cos.c	\
495
		s_erf.c	s_exp10.c s_expm1.c s_fabs.c s_fdim.c s_finite.c s_floor.c s_fma.c	\
496
		s_erf.c	s_exp10.c s_expm1.c s_fabs.c s_fdim.c s_finite.c s_floor.c s_fma.c	\
496
		s_fmax.c s_fmin.c s_fpclassify.c						\
497
		s_fmax.c s_fmin.c s_fpclassify.c						\
497
		s_frexp.c s_ilogb.c s_infconst.c s_infinity.c s_isinf.c s_isinfd.c s_isnan.c	\
498
		s_frexp.c s_ilogb.c s_infconst.c s_infinity.c s_isinf.c s_isinfd.c s_isnan.c	\
498
		s_isnand.c s_ldexp.c s_lib_ver.c s_llrint.c s_llround.c s_log1p.c s_log2.c	\
499
		s_isnand.c s_ldexp.c s_lib_ver.c s_llrint.c s_llround.c s_log1p.c s_log2.c	\
499
		s_logb.c s_lrint.c s_lround.c s_matherr.c s_modf.c s_nan.c s_nearbyint.c	\
500
		s_logb.c s_lrint.c s_lround.c s_matherr.c s_modf.c s_nan.c s_nearbyint.c	\
500
		s_nextafter.c s_pow10.c s_remquo.c s_rint.c s_round.c s_scalbln.c s_scalbn.c	\
501
		s_nextafter.c s_pow10.c s_remquo.c s_rint.c s_round.c s_scalbln.c s_scalbn.c	\
501
		s_signbit.c s_signif.c s_sin.c s_tan.c s_tanh.c s_trunc.c scalblnl.c scalbnl.c	\
502
		s_signbit.c s_signif.c s_sin.c s_tan.c s_tanh.c s_trunc.c scalblnl.c scalbnl.c	\
502
		sf_asinh.c sf_atan.c sf_cbrt.c sf_ceil.c sf_copysign.c sf_cos.c sf_erf.c 	\
503
		sf_asinh.c sf_atan.c sf_cbrt.c sf_ceil.c sf_copysign.c sf_cos.c sf_erf.c 	\
503
		sf_exp10.c sf_expm1.c sf_fabs.c sf_fdim.c sf_finite.c sf_floor.c sf_fma.c	\
504
		sf_exp10.c sf_expm1.c sf_fabs.c sf_fdim.c sf_finite.c sf_floor.c sf_fma.c	\
504
		sf_fmax.c sf_fmin.c sf_fpclassify.c sf_frexp.c sf_ilogb.c sf_infinity.c		\
505
		sf_fmax.c sf_fmin.c sf_fpclassify.c sf_frexp.c sf_ilogb.c sf_infinity.c		\
505
		sf_isinf.c sf_isinff.c sf_isnan.c sf_isnanf.c sf_ldexp.c sf_llrint.c		\
506
		sf_isinf.c sf_isinff.c sf_isnan.c sf_isnanf.c sf_ldexp.c sf_llrint.c		\
506
		sf_llround.c sf_log1p.c sf_log2.c sf_logb.c sf_lrint.c sf_lround.c sf_modf.c	\
507
		sf_llround.c sf_log1p.c sf_log2.c sf_logb.c sf_lrint.c sf_lround.c sf_modf.c	\
507
		sf_nan.c sf_nearbyint.c sf_nextafter.c sf_pow10.c sf_remquo.c sf_rint.c		\
508
		sf_nan.c sf_nearbyint.c sf_nextafter.c sf_pow10.c sf_remquo.c sf_rint.c		\
508
		sf_round.c sf_scalbln.c sf_scalbn.c sf_signif.c sf_sin.c sf_tan.c sf_tanh.c	\
509
		sf_round.c sf_scalbln.c sf_scalbn.c sf_signif.c sf_sin.c sf_tan.c sf_tanh.c	\
509
		sf_trunc.c w_acos.c w_acosh.c w_asin.c w_atan2.c w_atanh.c w_cosh.c w_drem.c	\
510
		sf_trunc.c w_acos.c w_acosh.c w_asin.c w_atan2.c w_atanh.c w_cosh.c w_drem.c	\
510
		w_exp.c w_exp2.c w_fmod.c w_gamma.c w_hypot.c w_j0.c w_j1.c w_jn.c w_lgamma.c	\
511
		w_exp.c w_exp2.c w_fmod.c w_gamma.c w_hypot.c w_j0.c w_j1.c w_jn.c w_lgamma.c	\
511
		w_log.c w_log10.c w_pow.c w_remainder.c w_scalb.c w_sincos.c w_sinh.c w_sqrt.c	\
512
		w_log.c w_log10.c w_pow.c w_remainder.c w_scalb.c w_sincos.c w_sinh.c w_sqrt.c	\
512
		w_tgamma.c wf_acos.c wf_acosh.c wf_asin.c wf_atan2.c wf_atanh.c wf_cosh.c	\
513
		w_tgamma.c wf_acos.c wf_acosh.c wf_asin.c wf_atan2.c wf_atanh.c wf_cosh.c	\
513
		wf_drem.c wf_exp.c wf_exp2.c wf_fmod.c wf_gamma.c wf_hypot.c wf_j0.c wf_j1.c	\
514
		wf_drem.c wf_exp.c wf_exp2.c wf_fmod.c wf_gamma.c wf_hypot.c wf_j0.c wf_j1.c	\
514
		wf_jn.c wf_lgamma.c wf_log.c wf_log10.c wf_pow.c wf_remainder.c wf_scalb.c	\
515
		wf_jn.c wf_lgamma.c wf_log.c wf_log10.c wf_pow.c wf_remainder.c wf_scalb.c	\
515
		wf_sincos.c wf_sinh.c wf_sqrt.c wf_tgamma.c wr_gamma.c wr_lgamma.c wrf_gamma.c	\
516
		wf_sincos.c wf_sinh.c wf_sqrt.c wf_tgamma.c wr_gamma.c wr_lgamma.c wrf_gamma.c	\
516
		wrf_lgamma.c	\
517
		wrf_lgamma.c	\
517
		f_atan2.S f_atan2f.S f_frexp.S f_frexpf.S f_ldexp.S f_ldexpf.S f_log.S		\
518
		f_atan2.S f_atan2f.S f_frexp.S f_frexpf.S f_ldexp.S f_ldexpf.S f_log.S		\
518
		f_log10.S f_log10f.S f_logf.S f_tan.S f_tanf.S
519
		f_log10.S f_log10f.S f_logf.S f_tan.S f_tanf.S
519
 
520
 
520
 
521
 
521
STATIC_OBJS =  $(patsubst %.S, %.o, $(patsubst %.c, %.o, $(STATIC_SRCS)))
522
STATIC_OBJS =  $(patsubst %.S, %.o, $(patsubst %.c, %.o, $(STATIC_SRCS)))
522
 
523
 
523
LIBCRT_OBJS =  $(patsubst %.S, %.o, $(patsubst %.c, %.o, $(LIBCRT_SRCS)))
524
LIBCRT_OBJS =  $(patsubst %.S, %.o, $(patsubst %.c, %.o, $(LIBCRT_SRCS)))
524
 
525
 
525
LIBDLL_OBJS =  $(patsubst %.S, %.o, $(patsubst %.c, %.o, $(LIBDLL_SRCS)))
526
LIBDLL_OBJS =  $(patsubst %.S, %.o, $(patsubst %.c, %.o, $(LIBDLL_SRCS)))
526
 
527
 
527
LIBCDLL_OBJS =  $(patsubst %.S, %.o, $(patsubst %.c, %.o, $(LIBCDLL_SRCS)))
528
LIBCDLL_OBJS =  $(patsubst %.S, %.o, $(patsubst %.c, %.o, $(LIBCDLL_SRCS)))
528
 
529
 
529
CORE_OBJS =  $(patsubst %.S, %.o, $(patsubst %.asm, %.obj,\
530
CORE_OBJS =  $(patsubst %.S, %.o, $(patsubst %.asm, %.obj,\
530
            $(patsubst %.c, %.o, $(CORE_SRCS))))
531
            $(patsubst %.c, %.o, $(CORE_SRCS))))
531
 
532
 
532
STDIO_OBJS =  $(patsubst %.c, stdio/%.o,$(STDIO_SRCS))
533
STDIO_OBJS =  $(patsubst %.c, stdio/%.o,$(STDIO_SRCS))
533
 
534
 
534
 
535
 
535
STRING_OBJS =  $(patsubst %.S, string/%.o, $(patsubst %.asm, string/%.o,\
536
STRING_OBJS =  $(patsubst %.S, string/%.o, $(patsubst %.asm, string/%.o,\
536
               $(patsubst %.c, string/%.o, $(STRING_SRCS))))
537
               $(patsubst %.c, string/%.o, $(STRING_SRCS))))
537
 
538
 
538
STDLIB_OBJS =  $(patsubst %.S, stdlib/%.o, $(patsubst %.asm, stdlib/%.o,\
539
STDLIB_OBJS =  $(patsubst %.S, stdlib/%.o, $(patsubst %.asm, stdlib/%.o,\
539
               $(patsubst %.c, stdlib/%.o, $(STDLIB_SRCS))))
540
               $(patsubst %.c, stdlib/%.o, $(STDLIB_SRCS))))
540
 
541
 
541
DIRENT_OBJS =  $(patsubst %.S, dirent/%.o, $(patsubst %.asm, dirent/%.o,\
542
DIRENT_OBJS =  $(patsubst %.S, dirent/%.o, $(patsubst %.asm, dirent/%.o,\
542
               $(patsubst %.c, dirent/%.o, $(DIRENT_SRCS))))
543
               $(patsubst %.c, dirent/%.o, $(DIRENT_SRCS))))
543
 
544
 
544
MATH_OBJS =  $(patsubst %.S, math/%.o, $(patsubst %.asm, math/%.o,\
545
MATH_OBJS =  $(patsubst %.S, math/%.o, $(patsubst %.asm, math/%.o,\
545
               $(patsubst %.c, math/%.o, $(MATH_SRCS))))
546
               $(patsubst %.c, math/%.o, $(MATH_SRCS))))
546
 
547
 
547
 
548
 
548
PRINTF_OBJS= 	stdio/vfprintf.o	\
549
PRINTF_OBJS= 	stdio/vfprintf.o	\
549
		stdio/vfiprintf.o	\
550
		stdio/vfiprintf.o	\
550
		stdio/svfprintf.o	\
551
		stdio/svfprintf.o	\
551
		stdio/svfiprintf.o	\
552
		stdio/svfiprintf.o	\
552
		stdio/svfiwprintf.o 	\
553
		stdio/svfiwprintf.o 	\
553
		stdio/svfwprintf.o	\
554
		stdio/svfwprintf.o	\
554
		stdio/vfiwprintf.o	\
555
		stdio/vfiwprintf.o	\
555
		stdio/vfwprintf.o	\
556
		stdio/vfwprintf.o	\
556
		stdio/vfscanf.o		\
557
		stdio/vfscanf.o		\
557
		stdio/vfiscanf.o	\
558
		stdio/vfiscanf.o	\
558
		stdio/svscanf.o		\
559
		stdio/svscanf.o		\
559
		stdio/svfiscanf.o	\
560
		stdio/svfiscanf.o	\
560
		stdio/svfiwscanf.o	\
561
		stdio/svfiwscanf.o	\
561
		stdio/svfwscanf.o
562
		stdio/svfwscanf.o
562
 
563
 
563
ifeq ($(findstring static,$(MAKECMDGOALS)),static)
564
ifeq ($(findstring static,$(MAKECMDGOALS)),static)
564
 
565
 
565
LIB_SRCS:=  	$(STATIC_SRCS)
566
LIB_SRCS:=  	$(STATIC_SRCS)
566
LIB_OBJS:=  	$(STATIC_OBJS)
567
LIB_OBJS:=  	$(STATIC_OBJS)
567
 
568
 
568
else
569
else
569
 
570
 
570
LIB_SRCS:=  	$(LIBCDLL_SRCS)
571
LIB_SRCS:=  	$(LIBCDLL_SRCS)
571
LIB_OBJS:=  	$(LIBCDLL_OBJS)
572
LIB_OBJS:=  	$(LIBCDLL_OBJS)
572
 
573
 
573
endif
574
endif
574
 
575
 
575
LIB_SRCS+=				\
576
LIB_SRCS+=				\
576
		$(CORE_SRCS)		\
577
		$(CORE_SRCS)		\
577
		$(STDIO_SRCS) 		\
578
		$(STDIO_SRCS) 		\
578
		$(STRING_SRCS)		\
579
		$(STRING_SRCS)		\
579
		$(STDLIB_SRCS)
580
		$(STDLIB_SRCS)
580
 
581
 
581
LIB_OBJS+=				\
582
LIB_OBJS+=				\
582
		$(CORE_OBJS) 		\
583
		$(CORE_OBJS) 		\
583
		$(STRING_OBJS) 		\
584
		$(STRING_OBJS) 		\
584
		$(STDLIB_OBJS)		\
585
		$(STDLIB_OBJS)		\
585
		$(STDIO_OBJS) 		\
586
		$(STDIO_OBJS) 		\
586
		$(PRINTF_OBJS)		\
587
		$(PRINTF_OBJS)		\
587
		$(MATH_OBJS)		\
588
		$(MATH_OBJS)		\
588
		$(DIRENT_OBJS)
589
		$(DIRENT_OBJS)
589
 
590
 
590
LIB_OBJS+= time/wcsftime.o
591
LIB_OBJS+= time/wcsftime.o
591
 
592
 
592
shared: $(NAME).dll libdll.a
593
shared: $(NAME).dll libdll.a
593
 
594
 
594
 
595
 
595
$(NAME).dll: $(LIB_OBJS) $(SRC_DEP) Makefile
596
$(NAME).dll: $(LIB_OBJS) $(SRC_DEP) Makefile
596
	$(LD) $(LDFLAGS) $(LIBPATH) -o $@ $(LIB_OBJS) -lgcc --version-script libc.ver
597
	$(LD) $(LDFLAGS) $(LIBPATH) -o $@ $(LIB_OBJS) -lgcc --version-script libc.ver
597
#sed -e "s/ @[^ ]*//" libc.orig.def > libc.def
598
#sed -e "s/ @[^ ]*//" libc.orig.def > libc.def
598
#sed -f cmd2.sed libc.def > mem
599
#sed -f cmd2.sed libc.def > mem
599
#sed -f newlib.sed mem > libc.inc
600
#sed -f newlib.sed mem > libc.inc
600
 
601
 
601
install: libc.dll libc.dll.a libdll.a
602
install: libc.dll libc.dll.a libdll.a
602
	mv -f libc.dll $(SDK_DIR)/bin
603
	mv -f libc.dll $(SDK_DIR)/bin
603
	mv -f libc.dll.a $(INSTALLDIR)
604
	mv -f libc.dll.a $(INSTALLDIR)/lib
604
	mv -f libdll.a $(INSTALLDIR)
605
	mv -f libdll.a $(INSTALLDIR)/lib
605
 
606
 
606
libdll.a: $(LIBDLL_OBJS) Makefile
607
libdll.a: $(LIBDLL_OBJS) Makefile
607
	$(AR) $(ARFLAGS) libdll.a $(LIBDLL_OBJS)
608
	$(AR) $(ARFLAGS) libdll.a $(LIBDLL_OBJS)
608
 
609
 
609
static: $(NAME).a
610
static: $(NAME).a
610
 
611
 
611
$(NAME).a: $(LIB_OBJS) $(SRC_DEP) Makefile
612
$(NAME).a: $(LIB_OBJS) $(SRC_DEP) Makefile
612
	$(AR) $(ARFLAGS) $(NAME).a $(LIB_OBJS)
613
	$(AR) $(ARFLAGS) $(NAME).a $(LIB_OBJS)
613
	mv -f libc.a $(INSTALLDIR)
614
	mv -f libc.a $(INSTALLDIR)
614
 
615
 
615
crt/crt1.o: crt/crt1.c
616
crt/crt1.o: crt/crt1.c
616
	$(CC) $(CFLAGS) $(DEFINES) $(INCLUDES) -fno-delete-null-pointer-checks crt/crt1.c -o $@
617
	$(CC) $(CFLAGS) $(DEFINES) $(INCLUDES) -fno-delete-null-pointer-checks crt/crt1.c -o $@
617
 
618
 
618
crt/crtdll.o: crt/crtdll.c
619
crt/crtdll.o: crt/crtdll.c
619
	$(CC) $(CFLAGS) $(DEFINES) $(INCLUDES) -fno-delete-null-pointer-checks crt/crtdll.c -o $@
620
	$(CC) $(CFLAGS) $(DEFINES) $(INCLUDES) -fno-delete-null-pointer-checks crt/crtdll.c -o $@
620
 
621
 
621
pe/loader.o: pe/loader.c
622
pe/loader.o: pe/loader.c
622
	$(CC) $(CFLAGS) $(DEFINES) $(INCLUDES) -fno-delete-null-pointer-checks pe/loader.c -o $@
623
	$(CC) $(CFLAGS) $(DEFINES) $(INCLUDES) -fno-delete-null-pointer-checks pe/loader.c -o $@
623
 
624
 
624
reent/renamer.o: reent/renamer.c
625
reent/renamer.o: reent/renamer.c
625
	$(CC) $(CFLAGS) $(DEFINES) -D_COMPILING_NEWLIB $(INCLUDES) reent/renamer.c -o $@
626
	$(CC) $(CFLAGS) $(DEFINES) -D_COMPILING_NEWLIB $(INCLUDES) reent/renamer.c -o $@
626
 
627
 
627
stdio/svfiprintf.o: stdio/vfprintf.c
628
stdio/svfiprintf.o: stdio/vfprintf.c
628
	$(CC) $(CFLAGS) $(DEFINES) $(INCLUDES) -fshort-enums -DINTEGER_ONLY -DSTRING_ONLY stdio/vfprintf.c -o $@
629
	$(CC) $(CFLAGS) $(DEFINES) $(INCLUDES) -fshort-enums -DINTEGER_ONLY -DSTRING_ONLY stdio/vfprintf.c -o $@
629
 
630
 
630
stdio/svfprintf.o: stdio/vfprintf.c
631
stdio/svfprintf.o: stdio/vfprintf.c
631
	$(CC) $(CFLAGS) $(DEFINES) $(INCLUDES) -fshort-enums -DSTRING_ONLY stdio/vfprintf.c -o $@
632
	$(CC) $(CFLAGS) $(DEFINES) $(INCLUDES) -fshort-enums -DSTRING_ONLY stdio/vfprintf.c -o $@
632
 
633
 
633
stdio/vfiprintf.o: stdio/vfprintf.c
634
stdio/vfiprintf.o: stdio/vfprintf.c
634
	$(CC) $(CFLAGS) $(DEFINES) $(INCLUDES) -fshort-enums -DINTEGER_ONLY stdio/vfprintf.c -o $@
635
	$(CC) $(CFLAGS) $(DEFINES) $(INCLUDES) -fshort-enums -DINTEGER_ONLY stdio/vfprintf.c -o $@
635
 
636
 
636
stdio/vfprintf.o: stdio/vfprintf.c
637
stdio/vfprintf.o: stdio/vfprintf.c
637
	$(CC) $(CFLAGS) $(DEFINES) $(INCLUDES) -fshort-enums stdio/vfprintf.c -o $@
638
	$(CC) $(CFLAGS) $(DEFINES) $(INCLUDES) -fshort-enums stdio/vfprintf.c -o $@
638
 
639
 
639
stdio/svfiwprintf.o: stdio/vfwprintf.c
640
stdio/svfiwprintf.o: stdio/vfwprintf.c
640
	$(CC) $(CFLAGS) $(DEFINES) $(INCLUDES) -fshort-enums -DINTEGER_ONLY -DSTRING_ONLY stdio/vfwprintf.c -o $@
641
	$(CC) $(CFLAGS) $(DEFINES) $(INCLUDES) -fshort-enums -DINTEGER_ONLY -DSTRING_ONLY stdio/vfwprintf.c -o $@
641
 
642
 
642
stdio/svfwprintf.o: stdio/vfwprintf.c
643
stdio/svfwprintf.o: stdio/vfwprintf.c
643
	$(CC) $(CFLAGS) $(DEFINES) $(INCLUDES) -fshort-enums -DSTRING_ONLY stdio/vfwprintf.c -o $@
644
	$(CC) $(CFLAGS) $(DEFINES) $(INCLUDES) -fshort-enums -DSTRING_ONLY stdio/vfwprintf.c -o $@
644
 
645
 
645
stdio/vfiwprintf.o: stdio/vfwprintf.c
646
stdio/vfiwprintf.o: stdio/vfwprintf.c
646
	$(CC) $(CFLAGS) $(DEFINES) $(INCLUDES) -fshort-enums -DINTEGER_ONLY stdio/vfwprintf.c -o $@
647
	$(CC) $(CFLAGS) $(DEFINES) $(INCLUDES) -fshort-enums -DINTEGER_ONLY stdio/vfwprintf.c -o $@
647
 
648
 
648
stdio/vfwprintf.o: stdio/vfwprintf.c
649
stdio/vfwprintf.o: stdio/vfwprintf.c
649
	$(CC) $(CFLAGS) $(DEFINES) $(INCLUDES) -fshort-enums stdio/vfwprintf.c -o $@
650
	$(CC) $(CFLAGS) $(DEFINES) $(INCLUDES) -fshort-enums stdio/vfwprintf.c -o $@
650
 
651
 
651
stdio/svfiscanf.o: stdio/vfscanf.c
652
stdio/svfiscanf.o: stdio/vfscanf.c
652
	$(CC) $(CFLAGS) $(DEFINES) -DINTEGER_ONLY -DSTRING_ONLY $(INCLUDES) stdio/vfscanf.c -o $@
653
	$(CC) $(CFLAGS) $(DEFINES) -DINTEGER_ONLY -DSTRING_ONLY $(INCLUDES) stdio/vfscanf.c -o $@
653
 
654
 
654
stdio/svscanf.o: stdio/vfscanf.c
655
stdio/svscanf.o: stdio/vfscanf.c
655
	$(CC) $(CFLAGS) $(DEFINES) -DSTRING_ONLY $(INCLUDES) stdio/vfscanf.c -o $@
656
	$(CC) $(CFLAGS) $(DEFINES) -DSTRING_ONLY $(INCLUDES) stdio/vfscanf.c -o $@
656
 
657
 
657
stdio/vfscanf.o: stdio/vfscanf.c
658
stdio/vfscanf.o: stdio/vfscanf.c
658
	$(CC) $(CFLAGS) $(DEFINES) $(INCLUDES)	stdio/vfscanf.c -o $@
659
	$(CC) $(CFLAGS) $(DEFINES) $(INCLUDES)	stdio/vfscanf.c -o $@
659
 
660
 
660
stdio/vfiscanf.o: stdio/vfscanf.c
661
stdio/vfiscanf.o: stdio/vfscanf.c
661
	$(CC) $(CFLAGS) $(DEFINES) -DINTEGER_ONLY $(INCLUDES) stdio/vfscanf.c -o $@
662
	$(CC) $(CFLAGS) $(DEFINES) -DINTEGER_ONLY $(INCLUDES) stdio/vfscanf.c -o $@
662
 
663
 
663
stdio/svfiwscanf.o: stdio/vfwscanf.c
664
stdio/svfiwscanf.o: stdio/vfwscanf.c
664
	$(CC) $(CFLAGS) $(DEFINES) -DINTEGER_ONLY -DSTRING_ONLY $(INCLUDES) stdio/vfwscanf.c -o $@
665
	$(CC) $(CFLAGS) $(DEFINES) -DINTEGER_ONLY -DSTRING_ONLY $(INCLUDES) stdio/vfwscanf.c -o $@
665
 
666
 
666
stdio/svfwscanf.o: stdio/vfwscanf.c
667
stdio/svfwscanf.o: stdio/vfwscanf.c
667
	$(CC) $(CFLAGS) $(DEFINES) -DSTRING_ONLY $(INCLUDES) stdio/vfwscanf.c -o $@
668
	$(CC) $(CFLAGS) $(DEFINES) -DSTRING_ONLY $(INCLUDES) stdio/vfwscanf.c -o $@
668
 
669
 
669
stdio/vfiwscanf.o: stdio/vfwscanf.c
670
stdio/vfiwscanf.o: stdio/vfwscanf.c
670
	$(CC) $(CFLAGS) $(DEFINES) -DINTEGER_ONLY $(INCLUDES) stdio/vfwscanf.c -o $@
671
	$(CC) $(CFLAGS) $(DEFINES) -DINTEGER_ONLY $(INCLUDES) stdio/vfwscanf.c -o $@
671
 
672
 
672
time/wcsftime.o: time/strftime.c
673
time/wcsftime.o: time/strftime.c
673
	$(CC) $(CFLAGS) $(DEFINES) -DMAKE_WCSFTIME $(INCLUDES) time/strftime.c -o $@
674
	$(CC) $(CFLAGS) $(DEFINES) -DMAKE_WCSFTIME $(INCLUDES) time/strftime.c -o $@
674
 
675
 
675
 
676
 
676
%.obj : %.asm Makefile
677
%.obj : %.asm Makefile
677
	fasm $<
678
	fasm $<
678
 
679
 
679
%.o : %.c Makefile
680
%.o : %.c Makefile
680
	$(CC) $(CFLAGS) $(DEFINES) $(INCLUDES) -o $@ $<
681
	$(CC) $(CFLAGS) $(DEFINES) $(INCLUDES) -o $@ $<
681
 
682
 
682
%.o : %.S Makefile
683
%.o : %.S Makefile
683
	$(CC) $(CFLAGS) $(DEFINES) $(INCLUDES) -o $@ $<
684
	$(CC) $(CFLAGS) $(DEFINES) $(INCLUDES) -o $@ $<
684
 
685
 
685
 
686
 
686
clean:
687
clean:
687
	-rm -f */*.o
688
	-rm -f */*.o
688
 
689
 
689
 
690
 
690
clean:
691
clean:
691
>
692
>
692
 
693
 
693
%.o>
694
%.o>
694
 
695
 
695
%.o>
696
%.o>