diff options
author | Sam Roberts <vieuxtech@gmail.com> | 2012-02-23 17:12:37 -0800 |
---|---|---|
committer | Sam Roberts <vieuxtech@gmail.com> | 2012-04-11 13:45:59 -0700 |
commit | b1f7c349b5714ebe304f93e43576a0ff3f721fc1 (patch) | |
tree | d3c4f5539507be4fe69452f100e8843ee55567ac /src/makefile | |
parent | 3b19f2a7edbcde798a9cf5f1f6175d360e891744 (diff) | |
download | luasocket-b1f7c349b5714ebe304f93e43576a0ff3f721fc1.tar.gz luasocket-b1f7c349b5714ebe304f93e43576a0ff3f721fc1.tar.bz2 luasocket-b1f7c349b5714ebe304f93e43576a0ff3f721fc1.zip |
Add support for serial devices as socket streams on unix.
Diffstat (limited to 'src/makefile')
-rw-r--r-- | src/makefile | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/src/makefile b/src/makefile index 6ec8718..c5c22f2 100644 --- a/src/makefile +++ b/src/makefile | |||
@@ -47,6 +47,17 @@ UNIX_OBJS:=\ | |||
47 | usocket.o \ | 47 | usocket.o \ |
48 | unix.o | 48 | unix.o |
49 | 49 | ||
50 | #------ | ||
51 | # Modules belonging to serial (device streams) | ||
52 | # | ||
53 | SERIAL_OBJS:=\ | ||
54 | buffer.o \ | ||
55 | auxiliar.o \ | ||
56 | timeout.o \ | ||
57 | io.o \ | ||
58 | usocket.o \ | ||
59 | serial.o | ||
60 | |||
50 | all: $(SOCKET_SO) $(MIME_SO) | 61 | all: $(SOCKET_SO) $(MIME_SO) |
51 | 62 | ||
52 | $(SOCKET_SO): $(SOCKET_OBJS) | 63 | $(SOCKET_SO): $(SOCKET_OBJS) |
@@ -55,11 +66,14 @@ $(SOCKET_SO): $(SOCKET_OBJS) | |||
55 | $(MIME_SO): $(MIME_OBJS) | 66 | $(MIME_SO): $(MIME_OBJS) |
56 | $(LD) $(LDFLAGS) -o $@ $(MIME_OBJS) | 67 | $(LD) $(LDFLAGS) -o $@ $(MIME_OBJS) |
57 | 68 | ||
58 | all-unix: all $(UNIX_SO) | 69 | all-unix: all $(UNIX_SO) $(SERIAL_SO) |
59 | 70 | ||
60 | $(UNIX_SO): $(UNIX_OBJS) | 71 | $(UNIX_SO): $(UNIX_OBJS) |
61 | $(LD) $(LDFLAGS) -o $@ $(UNIX_OBJS) | 72 | $(LD) $(LDFLAGS) -o $@ $(UNIX_OBJS) |
62 | 73 | ||
74 | $(SERIAL_SO): $(SERIAL_OBJS) | ||
75 | $(LD) $(LDFLAGS) -o $@ $(SERIAL_OBJS) | ||
76 | |||
63 | #------ | 77 | #------ |
64 | # List of dependencies | 78 | # List of dependencies |
65 | # | 79 | # |
@@ -74,6 +88,8 @@ mime.o: mime.c mime.h | |||
74 | options.o: options.c auxiliar.h options.h socket.h io.h timeout.h \ | 88 | options.o: options.c auxiliar.h options.h socket.h io.h timeout.h \ |
75 | usocket.h inet.h | 89 | usocket.h inet.h |
76 | select.o: select.c socket.h io.h timeout.h usocket.h select.h | 90 | select.o: select.c socket.h io.h timeout.h usocket.h select.h |
91 | serial.o: serial.c auxiliar.h socket.h io.h timeout.h usocket.h \ | ||
92 | unix.h buffer.h | ||
77 | tcp.o: tcp.c auxiliar.h socket.h io.h timeout.h usocket.h inet.h \ | 93 | tcp.o: tcp.c auxiliar.h socket.h io.h timeout.h usocket.h inet.h \ |
78 | options.h tcp.h buffer.h | 94 | options.h tcp.h buffer.h |
79 | timeout.o: timeout.c auxiliar.h timeout.h | 95 | timeout.o: timeout.c auxiliar.h timeout.h |