7
# Hopefully no need to change anything below this line
11
# Modules belonging to socket-core
14
#$(COMPAT)/compat-5.1.o \
31
# Modules belonging mime-core
33
#$(COMPAT)/compat-5.1.o \
39
# Modules belonging unix (local domain sockets)
50
all: $(SOCKET_SO) $(MIME_SO)
52
$(SOCKET_SO): $(SOCKET_OBJS)
53
$(LD) $(LDFLAGS) -o $@ $(SOCKET_OBJS)
55
$(MIME_SO): $(MIME_OBJS)
56
$(LD) $(LDFLAGS) -o $@ $(MIME_OBJS)
58
$(UNIX_SO): $(UNIX_OBJS)
59
$(LD) $(LDFLAGS) -o $@ $(UNIX_OBJS)
62
# List of dependencies
64
auxiliar.o: auxiliar.c auxiliar.h
65
buffer.o: buffer.c buffer.h io.h timeout.h
66
except.o: except.c except.h
67
inet.o: inet.c inet.h socket.h io.h timeout.h usocket.h
68
io.o: io.c io.h timeout.h
69
luasocket.o: luasocket.c luasocket.h auxiliar.h except.h timeout.h \
70
buffer.h io.h inet.h socket.h usocket.h tcp.h udp.h select.h
72
options.o: options.c auxiliar.h options.h socket.h io.h timeout.h \
74
select.o: select.c socket.h io.h timeout.h usocket.h select.h
75
tcp.o: tcp.c auxiliar.h socket.h io.h timeout.h usocket.h inet.h \
76
options.h tcp.h buffer.h
77
timeout.o: timeout.c auxiliar.h timeout.h
78
udp.o: udp.c auxiliar.h socket.h io.h timeout.h usocket.h inet.h \
80
unix.o: unix.c auxiliar.h socket.h io.h timeout.h usocket.h options.h \
82
usocket.o: usocket.c socket.h io.h timeout.h usocket.h
85
rm -f $(SOCKET_SO) $(SOCKET_OBJS)
86
rm -f $(MIME_SO) $(UNIX_SO) $(MIME_OBJS) $(UNIX_OBJS)
89
# End of makefile configuration