SRC_DIR := $(SRC_PATH_BARE)/lib$(NAME) include $(SUBDIR)../common.mak LIBVERSION := $(lib$(NAME)_VERSION) LIBMAJOR := $(lib$(NAME)_VERSION_MAJOR) ifdef CONFIG_STATIC all: $(SUBDIR)$(LIBNAME) install-libs: install-lib$(NAME)-static install-headers: install-lib$(NAME)-headers install-lib$(NAME)-pkgconfig $(SUBDIR)$(LIBNAME): $(OBJS) $(RM) $@ $(AR) rc $@ $^ $(EXTRAOBJS) $(RANLIB) $@ endif INCINSTDIR := $(INCDIR)/lib$(NAME) THIS_LIB := $(SUBDIR)$($(CONFIG_SHARED:yes=S)LIBNAME) define RULES $(SUBDIR)%$(EXESUF): $(SUBDIR)%.o $(LD) $(FFLDFLAGS) -o $$@ $$^ -l$(FULLNAME) $(FFEXTRALIBS) $$(ELIBS) $(SUBDIR)%-test.o: $(SUBDIR)%.c $(CC) $(CPPFLAGS) $(CFLAGS) -DTEST -c $$(CC_O) $$^ $(SUBDIR)%-test.o: $(SUBDIR)%-test.c $(CC) $(CPPFLAGS) $(CFLAGS) -DTEST -c $$(CC_O) $$^ $(SUBDIR)x86/%.o: $(SUBDIR)x86/%.asm $(YASMDEP) $(YASMFLAGS) -I $$( $$(@:.o=.d) $(YASM) $(YASMFLAGS) -I $$(