lib CFLAGS

This commit is contained in:
albert 2002-10-12 18:58:39 +00:00
parent 0d7a4bdb06
commit 41c7d1113f

View File

@ -7,23 +7,22 @@ SHARED := 1
SONAME := lib$(NAME).so.$(LIBVERSION) SONAME := lib$(NAME).so.$(LIBVERSION)
LIBSRC := $(wildcard proc/*.c)
LIBHDR := $(wildcard proc/*.h)
LIBOBJ := $(LIBSRC:.c=.o)
#ALL += proc/lib$(NAME).a #ALL += proc/lib$(NAME).a
#INSTALL += $(usr/lib)/lib$(NAME).a # plus $(usr/include)$(NAME) gunk #INSTALL += $(usr/lib)/lib$(NAME).a # plus $(usr/include)$(NAME) gunk
LIB_CFLAGS := $(CFLAGS)
ifeq ($(SHARED),1) ifeq ($(SHARED),1)
ALL += proc/$(SONAME) ALL += proc/$(SONAME)
INSTALL += $(lib)/$(SONAME) INSTALL += $(lib)/$(SONAME)
LIB_CFLAGS += -fpic $(LIBOBJ) : CFLAGS += -fpic
LIBPROC := proc/$(SONAME) LIBPROC := proc/$(SONAME)
else else
LIBPROC := proc/lib$(NAME).a LIBPROC := proc/lib$(NAME).a
endif endif
LIBSRC := $(wildcard proc/*.c)
LIBHDR := $(wildcard proc/*.h)
LIBOBJ := $(LIBSRC:.c=.o)
LIB_X := COPYING Makefile.noam module.mk LIB_X := COPYING Makefile.noam module.mk
TARFILES += $(LIBSRC) $(LIBHDR) $(addprefix proc/,$(LIB_X)) TARFILES += $(LIBSRC) $(LIBHDR) $(addprefix proc/,$(LIB_X))