diff options
| author | Diego Nehab <diego@tecgraf.puc-rio.br> | 2005-08-12 05:56:32 +0000 |
|---|---|---|
| committer | Diego Nehab <diego@tecgraf.puc-rio.br> | 2005-08-12 05:56:32 +0000 |
| commit | 0c3cdd5ef2485a79d6fec9261f2850c41577d5b3 (patch) | |
| tree | d69164c9f815e2d0308ba3f0d15b18e67163d879 /src/makefile | |
| parent | 37f7af4b9f1250e3c3439df03d43cf291a4d6f37 (diff) | |
| download | luasocket-0c3cdd5ef2485a79d6fec9261f2850c41577d5b3.tar.gz luasocket-0c3cdd5ef2485a79d6fec9261f2850c41577d5b3.tar.bz2 luasocket-0c3cdd5ef2485a79d6fec9261f2850c41577d5b3.zip | |
Final push for release...
Diffstat (limited to 'src/makefile')
| -rw-r--r-- | src/makefile | 87 |
1 files changed, 87 insertions, 0 deletions
diff --git a/src/makefile b/src/makefile new file mode 100644 index 0000000..7ef18bf --- /dev/null +++ b/src/makefile | |||
| @@ -0,0 +1,87 @@ | |||
| 1 | #------ | ||
| 2 | # Load configuration | ||
| 3 | # | ||
| 4 | include ../config | ||
| 5 | |||
| 6 | #------ | ||
| 7 | # Hopefully no need to change anything below this line | ||
| 8 | # | ||
| 9 | |||
| 10 | #------ | ||
| 11 | # Modules belonging to socket-core | ||
| 12 | # | ||
| 13 | SOCKET_OBJS:= \ | ||
| 14 | luasocket.o \ | ||
| 15 | timeout.o \ | ||
| 16 | buffer.o \ | ||
| 17 | io.o \ | ||
| 18 | auxiliar.o \ | ||
| 19 | options.o \ | ||
| 20 | inet.o \ | ||
| 21 | tcp.o \ | ||
| 22 | udp.o \ | ||
| 23 | except.o \ | ||
| 24 | select.o \ | ||
| 25 | $(COMPAT)/compat-5.1.o \ | ||
| 26 | usocket.o | ||
| 27 | |||
| 28 | #------ | ||
| 29 | # Modules belonging mime-core | ||
| 30 | # | ||
| 31 | MIME_OBJS:=\ | ||
| 32 | mime.o \ | ||
| 33 | $(COMPAT)/compat-5.1.o | ||
| 34 | |||
| 35 | #------ | ||
| 36 | # Modules belonging unix (local domain sockets) | ||
| 37 | # | ||
| 38 | UNIX_OBJS:=\ | ||
| 39 | buffer.o \ | ||
| 40 | auxiliar.o \ | ||
| 41 | options.o \ | ||
| 42 | timeout.o \ | ||
| 43 | io.o \ | ||
| 44 | usocket.o \ | ||
| 45 | unix.o | ||
| 46 | |||
| 47 | all: $(SOCKET_SO) $(MIME_SO) | ||
| 48 | |||
| 49 | $(SOCKET_SO): $(SOCKET_OBJS) | ||
| 50 | $(LD) $(LDFLAGS) -o $@ $^ | ||
| 51 | |||
| 52 | $(MIME_SO): $(MIME_OBJS) | ||
| 53 | $(LD) $(LDFLAGS) -o $@ $^ | ||
| 54 | |||
| 55 | $(UNIX_SO): $(UNIX_OBJS) | ||
| 56 | $(LD) $(LDFLAGS) -o $@ $^ | ||
| 57 | |||
| 58 | #------ | ||
| 59 | # List of dependencies | ||
| 60 | # | ||
| 61 | auxiliar.o: auxiliar.c auxiliar.h | ||
| 62 | buffer.o: buffer.c buffer.h io.h timeout.h | ||
| 63 | except.o: except.c except.h | ||
| 64 | inet.o: inet.c inet.h socket.h io.h timeout.h usocket.h | ||
| 65 | io.o: io.c io.h timeout.h | ||
| 66 | luasocket.o: luasocket.c luasocket.h auxiliar.h except.h timeout.h \ | ||
| 67 | buffer.h io.h inet.h socket.h usocket.h tcp.h udp.h select.h | ||
| 68 | mime.o: mime.c mime.h | ||
| 69 | options.o: options.c auxiliar.h options.h socket.h io.h timeout.h \ | ||
| 70 | usocket.h inet.h | ||
| 71 | select.o: select.c socket.h io.h timeout.h usocket.h select.h | ||
| 72 | tcp.o: tcp.c auxiliar.h socket.h io.h timeout.h usocket.h inet.h \ | ||
| 73 | options.h tcp.h buffer.h | ||
| 74 | timeout.o: timeout.c auxiliar.h timeout.h | ||
| 75 | udp.o: udp.c auxiliar.h socket.h io.h timeout.h usocket.h inet.h \ | ||
| 76 | options.h udp.h | ||
| 77 | unix.o: unix.c auxiliar.h socket.h io.h timeout.h usocket.h options.h \ | ||
| 78 | unix.h buffer.h | ||
| 79 | usocket.o: usocket.c socket.h io.h timeout.h usocket.h | ||
| 80 | |||
| 81 | clean: | ||
| 82 | rm -f $(SOCKET_SO) $(SOCKET_OBJS) | ||
| 83 | rm -f $(MIME_SO) $(UNIX_SO) $(MIME_OBJS) $(UNIX_OBJS) | ||
| 84 | |||
| 85 | #------ | ||
| 86 | # End of makefile configuration | ||
| 87 | # | ||
