mirror of
https://github.com/brunoos/luasec.git
synced 2025-07-17 22:39:49 +02:00
DESTDIR compatibility + *FLAGs/utils configurability + ld -fpic error fix. Also fixes #1
Signed-off-by: Vadim A. Misbakh-Soloviov <mva@mva.name>
This commit is contained in:
@ -4,16 +4,18 @@ OBJS= \
|
||||
timeout.o \
|
||||
usocket.o
|
||||
|
||||
CC=gcc
|
||||
CFLAGS=$(MYCFLAGS) -DLUASOCKET_DEBUG
|
||||
CC ?= cc
|
||||
CFLAGS += $(MYCFLAGS) -DLUASOCKET_DEBUG
|
||||
AR := ar rcu
|
||||
RANLIB ?= ranlib
|
||||
|
||||
.PHONY: all clean
|
||||
|
||||
all: libluasocket.a
|
||||
|
||||
libluasocket.a: $(OBJS)
|
||||
ar rcu $@ $(OBJS)
|
||||
ranlib $@
|
||||
$(AR) $@ $(OBJS)
|
||||
$(RANLIB) $@
|
||||
|
||||
clean:
|
||||
rm -f $(OBJS) libluasocket.a
|
||||
|
Reference in New Issue
Block a user