Subversion Repositories Kolibri OS

Rev

Rev 3806 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
1906 serge 1
 
2
3
 
3809 Serge 4
LDFLAGS = -nostdlib -shared -s -T libcdll.lds --out-implib libcimp.a --image-base 0
3065 serge 5
1906 serge 6
 
7
LIBC_INCLUDES = $(LIBC_TOPDIR)/include
8
9
 
10
11
 
3362 Serge 12
1906 serge 13
 
3065 serge 14
1906 serge 15
 
3593 Serge 16
         		crt/start.S		\
3065 serge 17
         		crt/crt1.c		\
18
			crt/crt2.c		\
3593 Serge 19
         		crt/chkstk.S		\
20
         		crt/exit.S		\
3065 serge 21
			pe/crtloader.c
3805 Serge 22
1906 serge 23
 
3809 Serge 24
			crt/dllstart.c 		\
25
         		crt/chkstk.S         	\
26
         		crt/exit.S           	\
27
			crt/pseudo-reloc.c	\
3806 Serge 28
			crt/setjmp.S
3809 Serge 29
3805 Serge 30
 
31
 
32
			crt/crtdll.c		\
33
			crt/pseudo-reloc.c	\
34
			crt/chkstk.S		\
35
			crt/exit.S		\
3593 Serge 36
			pe/loader.c
37
3065 serge 38
 
3805 Serge 39
			crt/start.S		\
40
			crt/chkstk.S		\
41
			crt/crt3.c		\
42
			pe/crtloader.c
43
44
 
3593 Serge 45
			argz/buf_findstr.c	\
1906 serge 46
			argz/envz_get.c		\
47
         		crt/emutls.c         	\
3593 Serge 48
         		crt/thread.S         	\
49
         		crt/tls.S            	\
50
			crt/setjmp.S		\
3805 Serge 51
         		crt/assert.c         	\
3593 Serge 52
			crt/cpu_features.c	\
1906 serge 53
			ctype/ctype_.c 		\
54
			ctype/isascii.c		\
55
			ctype/isblank.c		\
56
         		ctype/isalnum.c      	\
3593 Serge 57
         		ctype/isalpha.c      	\
58
         		ctype/iscntrl.c      	\
59
         		ctype/isdigit.c      	\
60
         		ctype/islower.c      	\
61
			ctype/isupper.c      	\
62
         		ctype/isprint.c      	\
63
         		ctype/ispunct.c      	\
64
         		ctype/isspace.c      	\
65
         		ctype/iswctype.c     	\
66
         		ctype/iswalnum.c     	\
67
         		ctype/iswalpha.c     	\
68
         		ctype/iswblank.c     	\
69
         		ctype/iswcntrl.c     	\
70
         		ctype/iswdigit.c     	\
71
         		ctype/iswgraph.c     	\
72
         		ctype/iswlower.c     	\
73
         		ctype/iswprint.c     	\
74
         		ctype/iswpunct.c     	\
75
         		ctype/iswspace.c     	\
76
         		ctype/iswupper.c     	\
77
         		ctype/iswxdigit.c    	\
78
         		ctype/isxdigit.c     	\
79
			ctype/toascii.c		\
1906 serge 80
         		ctype/tolower.c      	\
3593 Serge 81
			ctype/toupper.c		\
1906 serge 82
         		ctype/towctrans.c    	\
3593 Serge 83
         		ctype/towlower.c     	\
84
         		ctype/towupper.c     	\
85
			ctype/wctrans.c		\
1906 serge 86
         		ctype/wctype.c       	\
3593 Serge 87
         		errno/errno.c        	\
88
			locale/locale.c		\
1906 serge 89
			locale/lctype.c		\
90
         		reent/impure.c       	\
3593 Serge 91
			reent/init_reent.c	\
92
	         	reent/getreent.c     	\
93
			reent/mutex.c		\
94
			reent/gettimeofdayr.c	\
1906 serge 95
         		reent/hdlman.c       	\
3593 Serge 96
			reent/isattyr.c		\
1906 serge 97
         		reent/openr.c        	\
3593 Serge 98
         		reent/closer.c       	\
99
         		reent/readr.c        	\
100
         		reent/lseekr.c       	\
101
         		reent/fstatr.c       	\
102
         		reent/writer.c       	\
103
         		search/qsort.c       	\
104
         		search/bsearch.c     	\
105
			signal/signal.c		\
1906 serge 106
         		sys/create.c         	\
3593 Serge 107
         		sys/delete.c         	\
108
         		sys/finfo.c          	\
109
         		sys/read.c           	\
110
         		sys/write.c          	\
111
         		sys/fsize.c          	\
112
         		time/asctime.c       	\
113
         		time/asctime_r.c     	\
114
         		time/clock.c         	\
115
         		time/ctime.c         	\
116
         		time/ctime_r.c       	\
117
			time/difftime.c		\
1906 serge 118
         		time/gettzinfo.c     	\
3593 Serge 119
         		time/gmtime.c        	\
120
			time/gmtime_r.c		\
1906 serge 121
         		time/mktime.c        	\
3593 Serge 122
         		time/mktm_r.c        	\
123
         		time/lcltime.c       	\
124
         		time/lcltime_r.c     	\
125
			time/strftime.c		\
1906 serge 126
         		time/time.c          	\
3593 Serge 127
         		time/tzlock.c        	\
128
         		time/tzvars.c        	\
129
			unpack/unpacker.asm
3065 serge 130
1906 serge 131
 
132
 
3593 Serge 133
         		__atexit.c          	\
3065 serge 134
         		__call_atexit.c     	\
135
         		abort.c              	\
136
         		abs.c               	\
137
         		atof.c              	\
138
         		atoi.c              	\
139
			atol.c			\
3593 Serge 140
         		div.c               	\
3065 serge 141
         		dtoa.c               	\
142
         		dtoastub.c          	\
143
         		exit.c              	\
144
         		gdtoa-gethex.c      	\
145
         		gdtoa-hexnan.c       	\
146
         		getenv.c             	\
147
         		mprec.c              	\
148
         		mbtowc.c             	\
149
         		mbtowc_r.c           	\
150
         		mbrtowc.c           	\
151
         		mlock.c              	\
152
         		calloc.c             	\
153
         		malloc.c             	\
154
        		mallocr.c           	\
155
        		 rand.c               	\
156
         		rand_r.c            	\
157
         		rand48.c            	\
158
         		realloc.c            	\
159
         		seed48.c             	\
160
         		srand48.c            	\
161
         		strtod.c            	\
162
         		strtol.c             	\
163
         		strtold.c            	\
164
         		strtoll.c            	\
165
         		strtoll_r.c         	\
166
         		strtoul.c            	\
167
         		strtoull.c           	\
168
         		strtoull_r.c        	\
169
         		system.c            	\
170
         		wcrtomb.c           	\
171
			wctomb_r.c
3593 Serge 172
1906 serge 173
 
174
 
3593 Serge 175
         		memcmp.c             \
176
         		memmove.c            \
177
         		memset.c             \
178
         		memchr.c             \
179
         		strcat.c             \
180
         		strchr.c             \
181
         		strcmp.c             \
182
         		strcoll.c            \
183
         		strcasecmp.c         \
184
         		strncasecmp.c        \
185
         		strncat.c            \
186
         		strncmp.c            \
187
         		strncpy.c            \
188
         		strndup.c            \
189
         		strndup_r.c          \
190
         		strnlen.c            \
191
         		strcasestr.c         \
192
         		strdup.c             \
193
         		strdup_r.c           \
194
         		strerror.c           \
195
         		strlen.c             \
196
         		strrchr.c            \
197
         		strpbrk.c            \
198
         		strsep.c             \
199
         		strstr.c             \
200
         		strtok.c             \
201
         		strtok_r.c           \
202
         		strupr.c             \
203
         		strcspn.c            \
204
         		strspn.c             \
205
         		strcpy.c             \
206
			u_strerr.c
1906 serge 207
208
 
3593 Serge 209
			clearerr.c		\
3065 serge 210
			diprintf.c		\
211
			dprintf.c		\
212
			printf.c		\
213
			putchar.c		\
214
			fgetc.c			\
3593 Serge 215
			fgets.c			\
216
			fopen.c			\
217
			fclose.c		\
3065 serge 218
			fdopen.c		\
219
			fflush.c		\
220
			flags.c			\
3593 Serge 221
			fileno.c		\
3065 serge 222
			findfp.c		\
223
			fiprintf.c		\
224
			fiscanf.c		\
225
			fprintf.c		\
226
			fputc.c			\
3593 Serge 227
			fputs.c			\
228
			fputwc.c		\
3065 serge 229
			fread.c			\
3593 Serge 230
			freopen.c		\
3065 serge 231
			fscanf.c		\
232
			fseek.c			\
3593 Serge 233
			fseeko.c		\
3065 serge 234
			ftell.c			\
3593 Serge 235
			ftello.c		\
3065 serge 236
			fwrite.c		\
237
			fvwrite.c		\
238
			fwalk.c			\
3593 Serge 239
			putc.c			\
240
			puts.c			\
241
			refill.c		\
3065 serge 242
			rget.c			\
3593 Serge 243
			remove.c		\
3065 serge 244
			rename.c		\
245
			setvbuf.c		\
246
			stdio.c			\
3593 Serge 247
			tmpfile.c		\
3065 serge 248
			tmpnam.c		\
249
			ungetc.c		\
250
			vasniprintf.c		\
3799 Serge 251
			vasnprintf.c		\
252
			vdprintf.c		\
253
			vdiprintf.c		\
254
			vscanf.c		\
3065 serge 255
			vsprintf.c		\
256
			vsnprintf.c		\
3593 Serge 257
			vsscanf.c		\
3065 serge 258
			makebuf.c		\
3593 Serge 259
			wsetup.c		\
3065 serge 260
			wbuf.c			\
3593 Serge 261
			sccl.c			\
262
			siprintf.c		\
3799 Serge 263
			sniprintf.c		\
3065 serge 264
			snprintf.c		\
265
			sprintf.c		\
266
			sscanf.c
1906 serge 267
268
 
3065 serge 269
 
3362 Serge 270
		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 		\
271
		e_remainder.c e_scalb.c e_sinh.c e_sqrt.c ef_acos.c ef_acosh.c ef_asin.c	\
272
		ef_atan2.c ef_atanh.c ef_cosh.c ef_exp.c ef_fmod.c ef_hypot.c ef_j0.c ef_j1.c	\
273
		ef_jn.c ef_log.c ef_log10.c ef_pow.c ef_rem_pio2.c ef_remainder.c ef_scalb.c	\
274
		ef_sinh.c ef_sqrt.c er_gamma.c er_lgamma.c erf_gamma.c erf_lgamma.c f_exp.c	\
275
		f_expf.c f_llrint.c f_llrintf.c f_llrintl.c f_lrint.c f_lrintf.c f_lrintl.c	\
276
		f_pow.c f_powf.c f_rint.c f_rintf.c f_rintl.c k_cos.c k_rem_pio2.c k_sin.c	\
277
		k_standard.c k_tan.c kf_cos.c kf_rem_pio2.c kf_sin.c kf_tan.c s_asinh.c 	\
278
		s_atan.c s_cbrt.c s_ceil.c s_copysign.c s_cos.c s_erf.c s_exp10.c s_expm1.c	\
279
		s_fabs.c s_fdim.c s_finite.c s_floor.c s_fma.c s_fmax.c s_fmin.c s_fpclassify.c	\
280
		s_frexp.c s_ilogb.c s_infconst.c s_infinity.c s_isinf.c s_isinfd.c s_isnan.c	\
281
		s_isnand.c s_ldexp.c s_lib_ver.c s_llrint.c s_llround.c s_log1p.c s_log2.c	\
282
		s_logb.c s_lrint.c s_lround.c s_matherr.c s_modf.c s_nan.c s_nearbyint.c	\
283
		s_nextafter.c s_pow10.c s_remquo.c s_rint.c s_round.c s_scalbln.c s_scalbn.c	\
284
		s_signbit.c s_signif.c s_sin.c s_tan.c s_tanh.c s_trunc.c scalblnl.c scalbnl.c	\
285
		sf_asinh.c sf_atan.c sf_cbrt.c sf_ceil.c sf_copysign.c sf_cos.c sf_erf.c 	\
286
		sf_exp10.c sf_expm1.c sf_fabs.c sf_fdim.c sf_finite.c sf_floor.c sf_fma.c	\
287
		sf_fmax.c sf_fmin.c sf_fpclassify.c sf_frexp.c sf_ilogb.c sf_infinity.c		\
288
		sf_isinf.c sf_isinff.c sf_isnan.c sf_isnanf.c sf_ldexp.c sf_llrint.c		\
289
		sf_llround.c sf_log1p.c sf_log2.c sf_logb.c sf_lrint.c sf_lround.c sf_modf.c	\
290
		sf_nan.c sf_nearbyint.c sf_nextafter.c sf_pow10.c sf_remquo.c sf_rint.c		\
291
		sf_round.c sf_scalbln.c sf_scalbn.c sf_signif.c sf_sin.c sf_tan.c sf_tanh.c	\
292
		sf_trunc.c w_acos.c w_acosh.c w_asin.c w_atan2.c w_atanh.c w_cosh.c w_drem.c	\
293
		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	\
294
		w_log.c w_log10.c w_pow.c w_remainder.c w_scalb.c w_sincos.c w_sinh.c w_sqrt.c	\
295
		w_tgamma.c wf_acos.c wf_acosh.c wf_asin.c wf_atan2.c wf_atanh.c wf_cosh.c	\
296
		wf_drem.c wf_exp.c wf_exp2.c wf_fmod.c wf_gamma.c wf_hypot.c wf_j0.c wf_j1.c	\
297
		wf_jn.c wf_lgamma.c wf_log.c wf_log10.c wf_pow.c wf_remainder.c wf_scalb.c	\
298
		wf_sincos.c wf_sinh.c wf_sqrt.c wf_tgamma.c wr_gamma.c wr_lgamma.c wrf_gamma.c	\
299
		wrf_lgamma.c	\
300
		f_atan2.S f_atan2f.S f_frexp.S f_frexpf.S f_ldexp.S f_ldexpf.S f_log.S		\
301
		f_log10.S f_log10f.S f_logf.S f_tan.S f_tanf.S
302
1906 serge 303
 
304
 
305
306
 
3805 Serge 307
308
 
3809 Serge 309
1906 serge 310
 
3805 Serge 311
312
 
1906 serge 313
            $(patsubst %.c, %.o, $(CORE_SRCS))))
314
315
 
316
317
 
318
 
319
               $(patsubst %.c, string/%.o, $(STRING_SRCS))))
320
321
 
322
               $(patsubst %.c, stdlib/%.o, $(STDLIB_SRCS))))
323
324
 
325
 
326
               $(patsubst %.c, math/%.o, $(MATH_SRCS))))
327
328
 
329
 
330
		stdio/vfiprintf.o	\
331
		stdio/svfprintf.o	\
332
		stdio/svfiprintf.o	\
333
		stdio/vfscanf.o		\
334
		stdio/vfiscanf.o	\
335
		stdio/svscanf.o		\
336
		stdio/svfiscanf.o
337
338
 
339
340
 
341
LIB_OBJS:=  	$(STATIC_OBJS)
342
343
 
344
345
 
3805 Serge 346
LIB_OBJS:=  	$(LIBCDLL_OBJS)
347
1906 serge 348
 
349
350
 
351
		$(CORE_SRCS)		\
352
		$(STDIO_SRCS) 		\
353
		$(STRING_SRCS)		\
354
		$(STDLIB_SRCS)
355
356
 
357
		$(CORE_OBJS) 		\
358
		$(STRING_OBJS) 		\
359
		$(STDLIB_OBJS)		\
360
		$(STDIO_OBJS) 		\
361
		$(PRINTF_OBJS) 		\
362
		$(MATH_OBJS)
363
364
 
365
 
366
 
3806 Serge 367
1906 serge 368
 
369
 
370
	ld $(LDFLAGS) -Map libcmap -L. -o $@ $(LIB_OBJS) -lgcc
3806 Serge 371
1906 serge 372
 
373
 
3805 Serge 374
	ar rc libcrt.a $(LIBCRT_OBJS)
375
376
 
3809 Serge 377
	ar rc libdll.a $(LIBDLL_OBJS)
378
1906 serge 379
 
380
 
381
382
 
383
	ar rc $(NAME).a $(LIB_OBJS)
384
385
 
386
 
387
 
388
	$(CC) $(CFLAGS) $(DEFINES) $(INCLUDES) -fshort-enums -DFLOATING_POINT -c stdio/vfprintf.c -o $@
389
390
 
391
	$(CC) $(CFLAGS) $(DEFINES) $(INCLUDES) -fshort-enums -DINTEGER_ONLY -c stdio/vfprintf.c -o $@
392
393
 
394
	$(CC) $(CFLAGS) $(DEFINES) $(INCLUDES) -fshort-enums -DSTRING_ONLY -c stdio/vfprintf.c -o $@
395
396
 
397
	$(CC) $(CFLAGS) $(DEFINES) $(INCLUDES) -fshort-enums -DINTEGER_ONLY -DSTRING_ONLY -c stdio/vfprintf.c -o $@
398
399
 
400
 
401
	$(CC) $(CFLAGS) $(DEFINES) $(INCLUDES)	stdio/vfscanf.c -o $@
402
403
 
404
	$(CC) $(CFLAGS) $(DEFINES) -DINTEGER_ONLY $(INCLUDES) stdio/vfscanf.c -o $@
405
406
 
407
	$(CC) $(CFLAGS) $(DEFINES) -DSTRING_ONLY $(INCLUDES) stdio/vfscanf.c -o $@
408
409
 
410
 
411
	$(CC) $(CFLAGS) $(DEFINES) -DINTEGER_ONLY -DSTRING_ONLY $(INCLUDES) stdio/vfscanf.c -o $@
412
413
 
414
 
415
 
416
	fasm $< $
3362 Serge 417
1906 serge 418
 
419
	$(CC) $(CFLAGS) $(DEFINES) $(INCLUDES) -o $@ $<
420
421
 
422
 
3065 serge 423
	-rm -f */*.o
424
1906 serge 425
 
426
 
3362 Serge 427
 
428