Subversion Repositories Kolibri OS

Rev

Rev 9959 | Only display areas with differences | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

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