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