was crashing GNU make and broken anyway
This commit is contained in:
parent
f795058de3
commit
3c2c8bd371
@ -17,13 +17,16 @@ LIBOBJ := $(LIBSRC:.c=.o)
|
|||||||
ifeq ($(SHARED),1)
|
ifeq ($(SHARED),1)
|
||||||
ALL += proc/$(SONAME)
|
ALL += proc/$(SONAME)
|
||||||
INSTALL += $(lib)/$(SONAME)
|
INSTALL += $(lib)/$(SONAME)
|
||||||
$(LIBOBJ) : CFLAGS += -fpic
|
FPIC := -fpic
|
||||||
LIBPROC := proc/$(SONAME)
|
LIBPROC := proc/$(SONAME)
|
||||||
else
|
else
|
||||||
ALL += proc/lib$(NAME).a
|
ALL += proc/lib$(NAME).a
|
||||||
LIBPROC := proc/lib$(NAME).a
|
LIBPROC := proc/lib$(NAME).a
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
# Separate rule for this directory, to use -fpic or -fPIC
|
||||||
|
$(LIBOBJ): proc/%.o: proc/%.c
|
||||||
|
$(CC) -c $(CFLAGS) $(FPIC) $< -o $@
|
||||||
|
|
||||||
LIB_X := COPYING module.mk
|
LIB_X := COPYING module.mk
|
||||||
TARFILES += $(LIBSRC) $(LIBHDR) $(addprefix proc/,$(LIB_X))
|
TARFILES += $(LIBSRC) $(LIBHDR) $(addprefix proc/,$(LIB_X))
|
||||||
|
Loading…
Reference in New Issue
Block a user