Subversion Repositories Kolibri OS

Rev

Rev 6324 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
8352 maxcodehac 1
CC = kos32-gcc
2
LD = kos32-ld
3
SDK_DIR = ../../../sdk
5191 serge 4
 
5
CFLAGS_OPT = -U_Win32 -U_WIN32 -U__MINGW32__ -UWIN32 -U_MSC_VER -O2
6
CFLAGS_OPT+= -fomit-frame-pointer -fno-ident -mno-ms-bitfields
7
CFLAGS_OPT+= -W -Wall -Wwrite-strings -Wc++-compat -Wstrict-prototypes
8
CFLAGS   = -c $(CFLAGS_OPT)
9
 
10
INCLUDES=  -I. -I../include -I$(SDK_DIR)/sources/newlib/libc/include
11
 
12
DEFINES=  -DHAVE_CONFIG_H
13
 
14
SRCS = \
15
	alloca.c argv.c	asprintf.c bcmp.c bcopy.c bzero.c	\
16
	choose-temp.c concat.c cp-demangle.c cp-demint.c 	\
6324 serge 17
	cplus-dem.c crc32.c d-demangle.c dwarfnames.c dyn-string.c fdmatch.c	\
5191 serge 18
	ffs.c fibheap.c filename_cmp.c floatformat.c fnmatch.c	\
19
	fopen_unlocked.c getopt.c getopt1.c getpwd.c		\
20
	getruntime.c hashtab.c hex.c index.c insque.c		\
21
	lbasename.c lrealpath.c	make-relative-prefix.c		\
5217 serge 22
	make-temp-file.c md5.c memmem.c mempcpy.c		\
5191 serge 23
	objalloc.c obstack.c partition.c physmem.c random.c	\
24
	regex.c rindex.c safe-ctype.c setenv.c setproctitle.c	\
25
	sha1.c sigsetmask.c simple-object.c simple-object-coff.c\
26
	simple-object-elf.c simple-object-mach-o.c		\
27
	simple-object-xcoff.c sort.c spaces.c splay-tree.c	\
28
	stack-limit.c stpcpy.c stpncpy.c strcasecmp.c strerror.c\
29
	strncasecmp.c strndup.c strnlen.c strverscmp.c		\
6324 serge 30
	timeval-utils.c	unlink-if-ordinary.c vasprintf.c vprintf-support.c	\
5191 serge 31
	xatexit.c xexit.c xmalloc.c xmemdup.c xstrdup.c		\
32
	xstrerror.c xstrndup.c
33
 
34
OBJS  =  $(patsubst %.cpp, %.o, $(patsubst %.c, %.o, $(SRCS)))
35
 
36
# targets
37
 
38
all: libiberty.a
39
 
8352 maxcodehac 40
libiberty.a : $(OBJS) Makefile
5191 serge 41
	$(AR) crs libiberty.a $(OBJS)
5199 serge 42
	mv -f libiberty.a $(SDK_DIR)/lib
5191 serge 43
 
44
%.o : %.c Makefile
45
	$(CC) $(CFLAGS) $(DEFINES) $(INCLUDES) -o $@ $<
46