lib CFLAGS
This commit is contained in:
parent
0d7a4bdb06
commit
41c7d1113f
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user