Subversion Repositories Kolibri OS

Rev

Rev 4866 | Go to most recent revision | Details | Last modification | View Log | RSS feed

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