mirror of
https://github.com/KolibriOS/kolibrios.git
synced 2024-12-15 19:33:59 +03:00
d22ed6d387
git-svn-id: svn://kolibrios.org@5022 a494cfbc-eb01-0410-851d-a64ba20cac60
43 lines
671 B
Makefile
43 lines
671 B
Makefile
LIBRARY= libexpat
|
|
|
|
CC = kos32-gcc
|
|
AR = kos32-ar
|
|
LD = kos32-ld
|
|
|
|
CFLAGS = -U_Win32 -U_WIN32 -U__MINGW32__ -c -O2 -fno-ident -fomit-frame-pointer
|
|
|
|
ARFLAGS = crs
|
|
|
|
INCLUDES= -I. -I../newlib/libc/include
|
|
|
|
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
|
|
$(AR) $(ARFLAGS) $(LIBRARY).a $(OBJS)
|
|
mv -f $(LIBRARY).a ../../lib
|
|
|
|
%.o : %.c Makefile
|
|
$(CC) $(CFLAGS) $(DEFINES) $(INCLUDES) -o $@ $<
|
|
|
|
clean:
|
|
-rm -f lib/*.o
|
|
|
|
|
|
|
|
|