blob: 53869bfbae9e17b143ea41f81d30d89afa85da45 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
include ../../build/config.mk
include ../../build/module.mk
include ../../build/gccconfig.mk
%.o: %.c
$(COMPILE) $(LUA_CFLAGS) $(FPIC) -c -o $@ $<
compile: src/nixio.o src/socket.o src/sockopt.o src/bind.o src/address.o src/poll.o src/io.o src/file.o src/splice.o
$(LINK) $(SHLIB_FLAGS) -o src/nixio.so src/*.o
mkdir -p dist$(LUA_LIBRARYDIR)
cp src/nixio.so dist$(LUA_LIBRARYDIR)/nixio.so
clean: luaclean
rm -f src/*.o src/*.so
|