2014-04-11 09:51:27 +04:00
|
|
|
LIBRARY= libexpat
|
|
|
|
|
2014-04-21 21:06:44 +04:00
|
|
|
CC = kos32-gcc
|
|
|
|
AR = kos32-ar
|
|
|
|
LD = kos32-ld
|
|
|
|
|
2014-04-11 09:51:27 +04:00
|
|
|
CFLAGS = -U_Win32 -U_WIN32 -U__MINGW32__ -c -O2 -fomit-frame-pointer
|
|
|
|
|
2014-04-21 21:06:44 +04:00
|
|
|
ARFLAGS = crs
|
|
|
|
|
2014-05-22 00:47:51 +04:00
|
|
|
INCLUDES= -I. -I../newlib/libc/include
|
2014-04-11 09:51:27 +04:00
|
|
|
|
|
|
|
DEFS = -DHAVE_EXPAT_CONFIG_H
|
|
|
|
|
|
|
|
DEFINES= $(DEFS)
|
|
|
|
|
|
|
|
SRCS = lib/xmlparse.c \
|
|
|
|
lib/xmlrole.c \
|
|
|
|
lib/xmltok.c \
|
|
|
|
lib/xmltok_impl.c \
|
|
|
|
lib/xmltok_ns.c \
|
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
OBJS = $(patsubst %.c, %.o, $(SRCS))
|
|
|
|
|
|
|
|
# targets
|
|
|
|
|
|
|
|
all:$(LIBRARY).a
|
|
|
|
|
|
|
|
$(LIBRARY).a: $(OBJS) Makefile
|
2014-04-21 21:06:44 +04:00
|
|
|
$(AR) $(ARFLAGS) $(LIBRARY).a $(OBJS)
|
2014-04-11 09:51:27 +04:00
|
|
|
mv -f $(LIBRARY).a ../../lib
|
|
|
|
|
|
|
|
%.o : %.c Makefile
|
|
|
|
$(CC) $(CFLAGS) $(DEFINES) $(INCLUDES) -o $@ $<
|
|
|
|
|
|
|
|
clean:
|
|
|
|
-rm -f lib/*.o
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|