Subversion Repositories Kolibri OS

Rev

Rev 4818 | Rev 4930 | Go to most recent revision | 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
 
4818 Serge 7
CFLAGS = -U_Win32 -U_WIN32 -U__MINGW32__ -c -O2 -fomit-frame-pointer
8
 
4866 Serge 9
ARFLAGS = crs
10
 
4818 Serge 11
INCLUDES= -I. -I../newlib/include
12
 
13
DEFS = -DHAVE_EXPAT_CONFIG_H
14
 
15
DEFINES= $(DEFS)
16
 
17
SRCS = 	lib/xmlparse.c		\
18
	lib/xmlrole.c		\
19
	lib/xmltok.c		\
20
	lib/xmltok_impl.c	\
21
	lib/xmltok_ns.c		\
22
	$(NULL)
23
 
24
OBJS =  $(patsubst %.c, %.o, $(SRCS))
25
 
26
# targets
27
 
28
all:$(LIBRARY).a
29
 
30
$(LIBRARY).a: $(OBJS) Makefile
4866 Serge 31
	$(AR) $(ARFLAGS) $(LIBRARY).a $(OBJS)
4818 Serge 32
	mv -f $(LIBRARY).a ../../lib
33
 
34
%.o : %.c Makefile
35
	$(CC) $(CFLAGS) $(DEFINES) $(INCLUDES) -o $@ $<
36
 
37
clean:
38
	-rm -f lib/*.o
39
 
40
 
41