mirror of
https://github.com/brunoos/luasec.git
synced 2025-02-13 15:32:48 +01:00
27 lines
423 B
Makefile
27 lines
423 B
Makefile
OBJS= \
|
|
io.o \
|
|
buffer.o \
|
|
timeout.o \
|
|
usocket.o
|
|
|
|
CC ?= cc
|
|
CFLAGS += $(MYCFLAGS) -DLUASOCKET_DEBUG
|
|
AR ?= ar
|
|
RANLIB ?= ranlib
|
|
|
|
.PHONY: all clean
|
|
|
|
all: libluasocket.a
|
|
|
|
libluasocket.a: $(OBJS)
|
|
$(AR) rcu $@ $(OBJS)
|
|
$(RANLIB) $@
|
|
|
|
clean:
|
|
rm -f $(OBJS) libluasocket.a
|
|
|
|
buffer.o: buffer.c buffer.h io.h timeout.h
|
|
io.o: io.c io.h timeout.h
|
|
timeout.o: timeout.c timeout.h
|
|
usocket.o: usocket.c socket.h io.h timeout.h usocket.h
|