12345678910111213141516171819202122232425262728293031323334 |
- #
- # Licensed under LGPL v2.1, see the file COPYING.LIB in this tarball for details.
- #
- .SUFFIXES: .c .S .o .os .so .a .s .i
- ifndef top_srcdir
- top_srcdir=$(CURDIR)
- endif
- ifndef top_builddir
- top_builddir=$(CURDIR)
- endif
- top_srcdir:=$(shell echo "$(top_srcdir)/" | sed -e 's://:/:')
- top_builddir:=$(shell echo "$(top_builddir)/" | sed -e 's://:/:')
- ifeq ($(HAVE_SHARED),y)
- .LIBPATTERNS: "lib%.so"
- libs: libso-y liba-y
- else
- .LIBPATTERNS: "lib%.a"
- libs: liba-y
- endif
- libso-y: $(libso-y)
- liba-y: $(liba-y)
- libclean-y: $(libclean-y)
- compile.c=$(CC) -c $< -o $@ $(CPPFLAGS) $(CFLAGS) $(ARCH_CFLAGS) $(CFLAGS-$(suffix $@)) $(CFLAGS-$@) $(CFLAGS-$<)
- compile.S=$(compile.c) $(S_CPPFLAGS) $(ASFLAGS) $(ARCH_ASFLAGS) $(ASFLAGS-$(suffix $@)) $(ASFLAGS-$@) $(ASFLAGS-$<)
- compile.m=$(compile.c) -DL_$(patsubst %$(suffix $(notdir $@)),%,$(notdir $@))
- .PHONY: clean
- clean: libclean-y
|