From b1f7c349b5714ebe304f93e43576a0ff3f721fc1 Mon Sep 17 00:00:00 2001 From: Sam Roberts Date: Thu, 23 Feb 2012 17:12:37 -0800 Subject: Add support for serial devices as socket streams on unix. --- src/makefile | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) (limited to 'src/makefile') diff --git a/src/makefile b/src/makefile index 6ec8718..c5c22f2 100644 --- a/src/makefile +++ b/src/makefile @@ -47,6 +47,17 @@ UNIX_OBJS:=\ usocket.o \ unix.o +#------ +# Modules belonging to serial (device streams) +# +SERIAL_OBJS:=\ + buffer.o \ + auxiliar.o \ + timeout.o \ + io.o \ + usocket.o \ + serial.o + all: $(SOCKET_SO) $(MIME_SO) $(SOCKET_SO): $(SOCKET_OBJS) @@ -55,11 +66,14 @@ $(SOCKET_SO): $(SOCKET_OBJS) $(MIME_SO): $(MIME_OBJS) $(LD) $(LDFLAGS) -o $@ $(MIME_OBJS) -all-unix: all $(UNIX_SO) +all-unix: all $(UNIX_SO) $(SERIAL_SO) $(UNIX_SO): $(UNIX_OBJS) $(LD) $(LDFLAGS) -o $@ $(UNIX_OBJS) +$(SERIAL_SO): $(SERIAL_OBJS) + $(LD) $(LDFLAGS) -o $@ $(SERIAL_OBJS) + #------ # List of dependencies # @@ -74,6 +88,8 @@ 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 +serial.o: serial.c auxiliar.h socket.h io.h timeout.h usocket.h \ + unix.h buffer.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 -- cgit v1.2.3-55-g6feb