2014-04-11 07:51:27 +02:00
|
|
|
LIBRARY= libexpat
|
|
|
|
|
2014-04-21 19:06:44 +02:00
|
|
|
CC = kos32-gcc
|
|
|
|
AR = kos32-ar
|
|
|
|
LD = kos32-ld
|
|
|
|
|
2016-09-22 18:14:35 +02:00
|
|
|
INSTALLDIR:= /home/autobuild/tools/win32/lib
|
|
|
|
|
2014-08-07 13:48:01 +02:00
|
|
|
CFLAGS = -U_Win32 -U_WIN32 -U__MINGW32__ -c -O2 -fno-ident -fomit-frame-pointer
|
2014-04-11 07:51:27 +02:00
|
|
|
|
2014-04-21 19:06:44 +02:00
|
|
|
ARFLAGS = crs
|
|
|
|
|
2014-05-21 22:47:51 +02:00
|
|
|
INCLUDES= -I. -I../newlib/libc/include
|
2014-04-11 07:51:27 +02: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 19:06:44 +02:00
|
|
|
$(AR) $(ARFLAGS) $(LIBRARY).a $(OBJS)
|
2017-06-11 16:56:49 +02:00
|
|
|
|
|
|
|
install: $(LIBRARY).a
|
2016-09-22 18:14:35 +02:00
|
|
|
mv -f $(LIBRARY).a $(INSTALLDIR)
|
2014-04-11 07:51:27 +02:00
|
|
|
|
|
|
|
%.o : %.c Makefile
|
|
|
|
$(CC) $(CFLAGS) $(DEFINES) $(INCLUDES) -o $@ $<
|
|
|
|
|
|
|
|
clean:
|
|
|
|
-rm -f lib/*.o
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|