blob: 6cc7254c822d302cdff487086bc5b8f34ad6be30 (
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
$(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
|