2 # Licensed under LGPL v2.1, see the file COPYING.LIB in this tarball for details.
4 .SUFFIXES: .c .S .o .os .so .a .s .i
11 top_builddir=$(CURDIR)
14 top_srcdir:=$(shell echo "$(top_srcdir)/" | sed -e 's://:/:')
15 top_builddir:=$(shell echo "$(top_builddir)/" | sed -e 's://:/:')
17 ifeq ($(HAVE_SHARED),y)
18 .LIBPATTERNS: "lib%.so"
21 .LIBPATTERNS: "lib%.a"
27 libclean-y: $(libclean-y)
29 compile.c=$(CC) -c $< -o $@ $(CPPFLAGS) $(CFLAGS) $(ARCH_CFLAGS) $(CFLAGS-$(suffix $@)) $(CFLAGS-$@) $(CFLAGS-$<)
30 compile.S=$(compile.c) $(S_CPPFLAGS) $(ASFLAGS) $(ARCH_ASFLAGS) $(ASFLAGS-$(suffix $@)) $(ASFLAGS-$@) $(ASFLAGS-$<)
31 compile.m=$(compile.c) -DL_$(patsubst %$(suffix $(notdir $@)),%,$(notdir $@))