aboutsummaryrefslogtreecommitdiff
path: root/src/makefile
diff options
context:
space:
mode:
Diffstat (limited to 'src/makefile')
-rw-r--r--src/makefile18
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#
53SERIAL_OBJS:=\
54 buffer.o \
55 auxiliar.o \
56 timeout.o \
57 io.o \
58 usocket.o \
59 serial.o
60
50all: $(SOCKET_SO) $(MIME_SO) 61all: $(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
58all-unix: all $(UNIX_SO) 69all-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
74options.o: options.c auxiliar.h options.h socket.h io.h timeout.h \ 88options.o: options.c auxiliar.h options.h socket.h io.h timeout.h \
75 usocket.h inet.h 89 usocket.h inet.h
76select.o: select.c socket.h io.h timeout.h usocket.h select.h 90select.o: select.c socket.h io.h timeout.h usocket.h select.h
91serial.o: serial.c auxiliar.h socket.h io.h timeout.h usocket.h \
92 unix.h buffer.h
77tcp.o: tcp.c auxiliar.h socket.h io.h timeout.h usocket.h inet.h \ 93tcp.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
79timeout.o: timeout.c auxiliar.h timeout.h 95timeout.o: timeout.c auxiliar.h timeout.h