From: albert <> Date: Sat, 12 Oct 2002 18:58:39 +0000 (+0000) Subject: lib CFLAGS X-Git-Tag: v3.3.0~427 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=41c7d1113f90f8ac8ca5e4ba8d7372380647f889;p=procps-ng lib CFLAGS --- diff --git a/proc/module.mk b/proc/module.mk index 2deeb29b..75b54416 100644 --- a/proc/module.mk +++ b/proc/module.mk @@ -7,23 +7,22 @@ SHARED := 1 SONAME := lib$(NAME).so.$(LIBVERSION) +LIBSRC := $(wildcard proc/*.c) +LIBHDR := $(wildcard proc/*.h) +LIBOBJ := $(LIBSRC:.c=.o) + #ALL += proc/lib$(NAME).a #INSTALL += $(usr/lib)/lib$(NAME).a # plus $(usr/include)$(NAME) gunk -LIB_CFLAGS := $(CFLAGS) ifeq ($(SHARED),1) ALL += proc/$(SONAME) INSTALL += $(lib)/$(SONAME) -LIB_CFLAGS += -fpic +$(LIBOBJ) : CFLAGS += -fpic LIBPROC := proc/$(SONAME) else LIBPROC := proc/lib$(NAME).a endif -LIBSRC := $(wildcard proc/*.c) -LIBHDR := $(wildcard proc/*.h) -LIBOBJ := $(LIBSRC:.c=.o) - LIB_X := COPYING Makefile.noam module.mk TARFILES += $(LIBSRC) $(LIBHDR) $(addprefix proc/,$(LIB_X))