Subversion Repositories Kolibri OS

Rev

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

Rev Author Line No. Line
4818 Serge 1
LIBRARY= libexpat
2
 
4866 Serge 3
CC = kos32-gcc
4
AR = kos32-ar
5
LD = kos32-ld
6
 
6531 serge 7
INSTALLDIR:= /home/autobuild/tools/win32/lib
8
 
5022 Serge 9
CFLAGS = -U_Win32 -U_WIN32 -U__MINGW32__ -c -O2 -fno-ident -fomit-frame-pointer
4818 Serge 10
 
4866 Serge 11
ARFLAGS = crs
12
 
4930 Serge 13
INCLUDES= -I. -I../newlib/libc/include
4818 Serge 14
 
15
DEFS = -DHAVE_EXPAT_CONFIG_H
16
 
17
DEFINES= $(DEFS)
18
 
19
SRCS = 	lib/xmlparse.c		\
20
	lib/xmlrole.c		\
21
	lib/xmltok.c		\
22
	lib/xmltok_impl.c	\
23
	lib/xmltok_ns.c		\
24
	$(NULL)
25
 
26
OBJS =  $(patsubst %.c, %.o, $(SRCS))
27
 
28
# targets
29
 
30
all:$(LIBRARY).a
31
 
32
$(LIBRARY).a: $(OBJS) Makefile
4866 Serge 33
	$(AR) $(ARFLAGS) $(LIBRARY).a $(OBJS)
6531 serge 34
	mv -f $(LIBRARY).a $(INSTALLDIR)
4818 Serge 35
 
36
%.o : %.c Makefile
37
	$(CC) $(CFLAGS) $(DEFINES) $(INCLUDES) -o $@ $<
38
 
39
clean:
40
	-rm -f lib/*.o
41
 
42
 
43