forked from KolibriOS/kolibrios
e69d64552e
git-svn-id: svn://kolibrios.org@4818 a494cfbc-eb01-0410-851d-a64ba20cac60
41 lines
607 B
Makefile
41 lines
607 B
Makefile
CC=gcc
|
|
LD= ld
|
|
AR= ar
|
|
|
|
LIBRARY= libexpat
|
|
|
|
CFLAGS = -U_Win32 -U_WIN32 -U__MINGW32__ -c -O2 -fomit-frame-pointer
|
|
|
|
INCLUDES= -I. -I../newlib/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 cvrs $(LIBRARY).a $(OBJS)
|
|
mv -f $(LIBRARY).a ../../lib
|
|
|
|
%.o : %.c Makefile
|
|
$(CC) $(CFLAGS) $(DEFINES) $(INCLUDES) -o $@ $<
|
|
|
|
clean:
|
|
-rm -f lib/*.o
|
|
|
|
|
|
|
|
|