2005-08-12 07:56:32 +02:00
|
|
|
#------
|
|
|
|
# Load configuration
|
|
|
|
#
|
|
|
|
include ../config
|
|
|
|
|
|
|
|
#------
|
|
|
|
# Hopefully no need to change anything below this line
|
|
|
|
#
|
|
|
|
|
|
|
|
#------
|
|
|
|
# Modules belonging to socket-core
|
|
|
|
#
|
2006-04-20 06:16:23 +02:00
|
|
|
|
2005-08-12 07:56:32 +02:00
|
|
|
SOCKET_OBJS:= \
|
2005-09-29 08:11:42 +02:00
|
|
|
$(COMPAT)/compat-5.1.o \
|
2005-08-12 07:56:32 +02:00
|
|
|
luasocket.o \
|
|
|
|
timeout.o \
|
|
|
|
buffer.o \
|
|
|
|
io.o \
|
|
|
|
auxiliar.o \
|
|
|
|
options.o \
|
|
|
|
inet.o \
|
|
|
|
tcp.o \
|
|
|
|
udp.o \
|
|
|
|
except.o \
|
|
|
|
select.o \
|
|
|
|
usocket.o
|
|
|
|
|
|
|
|
#------
|
|
|
|
# Modules belonging mime-core
|
|
|
|
#
|
|
|
|
MIME_OBJS:=\
|
2005-09-29 08:11:42 +02:00
|
|
|
$(COMPAT)/compat-5.1.o \
|
|
|
|
mime.o
|
|
|
|
|
2005-08-12 07:56:32 +02:00
|
|
|
|
|
|
|
#------
|
|
|
|
# Modules belonging unix (local domain sockets)
|
|
|
|
#
|
|
|
|
UNIX_OBJS:=\
|
|
|
|
buffer.o \
|
|
|
|
auxiliar.o \
|
|
|
|
options.o \
|
|
|
|
timeout.o \
|
|
|
|
io.o \
|
|
|
|
usocket.o \
|
|
|
|
unix.o
|
|
|
|
|
|
|
|
all: $(SOCKET_SO) $(MIME_SO)
|
|
|
|
|
|
|
|
$(SOCKET_SO): $(SOCKET_OBJS)
|
2006-04-20 06:16:23 +02:00
|
|
|
$(LD) $(LDFLAGS) -o $@ $(SOCKET_OBJS)
|
2005-08-12 07:56:32 +02:00
|
|
|
|
|
|
|
$(MIME_SO): $(MIME_OBJS)
|
2006-04-20 06:16:23 +02:00
|
|
|
$(LD) $(LDFLAGS) -o $@ $(MIME_OBJS)
|
2005-08-12 07:56:32 +02:00
|
|
|
|
|
|
|
$(UNIX_SO): $(UNIX_OBJS)
|
2006-04-20 06:16:23 +02:00
|
|
|
$(LD) $(LDFLAGS) -o $@ $(UNIX_OBJS)
|
2005-08-12 07:56:32 +02:00
|
|
|
|
|
|
|
#------
|
|
|
|
# List of dependencies
|
|
|
|
#
|
|
|
|
auxiliar.o: auxiliar.c auxiliar.h
|
|
|
|
buffer.o: buffer.c buffer.h io.h timeout.h
|
|
|
|
except.o: except.c except.h
|
|
|
|
inet.o: inet.c inet.h socket.h io.h timeout.h usocket.h
|
|
|
|
io.o: io.c io.h timeout.h
|
|
|
|
luasocket.o: luasocket.c luasocket.h auxiliar.h except.h timeout.h \
|
|
|
|
buffer.h io.h inet.h socket.h usocket.h tcp.h udp.h select.h
|
|
|
|
mime.o: mime.c mime.h
|
|
|
|
options.o: options.c auxiliar.h options.h socket.h io.h timeout.h \
|
|
|
|
usocket.h inet.h
|
|
|
|
select.o: select.c socket.h io.h timeout.h usocket.h select.h
|
|
|
|
tcp.o: tcp.c auxiliar.h socket.h io.h timeout.h usocket.h inet.h \
|
|
|
|
options.h tcp.h buffer.h
|
|
|
|
timeout.o: timeout.c auxiliar.h timeout.h
|
|
|
|
udp.o: udp.c auxiliar.h socket.h io.h timeout.h usocket.h inet.h \
|
|
|
|
options.h udp.h
|
|
|
|
unix.o: unix.c auxiliar.h socket.h io.h timeout.h usocket.h options.h \
|
|
|
|
unix.h buffer.h
|
|
|
|
usocket.o: usocket.c socket.h io.h timeout.h usocket.h
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f $(SOCKET_SO) $(SOCKET_OBJS)
|
|
|
|
rm -f $(MIME_SO) $(UNIX_SO) $(MIME_OBJS) $(UNIX_OBJS)
|
|
|
|
|
|
|
|
#------
|
|
|
|
# End of makefile configuration
|
|
|
|
#
|