| 1 | # |
|---|
| 2 | # ispCP . (OMEGA) - Virtual Hosting Control System | Omega Version |
|---|
| 3 | # |
|---|
| 4 | # @copyright 2001-2006 by moleSoftware GmbH |
|---|
| 5 | # @copyright 2006-2007 by ispCP | http://isp-control.net |
|---|
| 6 | # @link http://isp-control.net |
|---|
| 7 | # @author ispCP Team |
|---|
| 8 | # |
|---|
| 9 | # @license |
|---|
| 10 | # This program is free software; you can redistribute it and/or modify it under |
|---|
| 11 | # the terms of the MPL General Public License as published by the Free Software |
|---|
| 12 | # Foundation; either version 1.1 of the License, or (at your option) any later |
|---|
| 13 | # version. |
|---|
| 14 | # You should have received a copy of the MPL Mozilla Public License along with |
|---|
| 15 | # this program; if not, write to the Open Source Initiative (OSI) |
|---|
| 16 | # http://opensource.org | osi@opensource.org |
|---|
| 17 | # |
|---|
| 18 | |
|---|
| 19 | OBJS = ispcp_daemon.o message.o daemon_init.o say.o signal-handlers.o\ |
|---|
| 20 | receive_data.o send_data.o take_connection.o send_line.o recv_line.o\ |
|---|
| 21 | helo_cmd.o helo_syntax.o lr_cmd.o lr_syntax.o bye_cmd.o bye_syntax.o |
|---|
| 22 | |
|---|
| 23 | BUILD = gcc -O2 -ansi -Wall -Wstrict-prototypes -pedantic -o |
|---|
| 24 | |
|---|
| 25 | COMPILE = gcc -O2 -ansi -Wall -Wstrict-prototypes -pedantic -c -o |
|---|
| 26 | |
|---|
| 27 | STRIP = strip -s |
|---|
| 28 | |
|---|
| 29 | ispcp_daemon: $(OBJS) |
|---|
| 30 | $(BUILD) ispcp_daemon $(OBJS) |
|---|
| 31 | $(STRIP) ispcp_daemon |
|---|
| 32 | |
|---|
| 33 | ispcp_daemon.o: ispcp_daemon.c defs.h |
|---|
| 34 | $(COMPILE) ispcp_daemon.o ispcp_daemon.c |
|---|
| 35 | |
|---|
| 36 | daemon_init.o: daemon_init.c daemon_init.h |
|---|
| 37 | $(COMPILE) daemon_init.o daemon_init.c |
|---|
| 38 | |
|---|
| 39 | message.o: message.c message.h |
|---|
| 40 | $(COMPILE) message.o message.c |
|---|
| 41 | |
|---|
| 42 | say.o: say.c say.h |
|---|
| 43 | $(COMPILE) say.o say.c |
|---|
| 44 | |
|---|
| 45 | signal-handlers.o: signal-handlers.c signal-handlers.h |
|---|
| 46 | $(COMPILE) signal-handlers.o signal-handlers.c |
|---|
| 47 | |
|---|
| 48 | receive_data.o: receive_data.c receive_data.h |
|---|
| 49 | $(COMPILE) receive_data.o receive_data.c |
|---|
| 50 | |
|---|
| 51 | send_data.o: send_data.c send_data.h |
|---|
| 52 | $(COMPILE) send_data.o send_data.c |
|---|
| 53 | |
|---|
| 54 | take_connection.o: take_connection.c take_connection.h |
|---|
| 55 | $(COMPILE) take_connection.o take_connection.c |
|---|
| 56 | |
|---|
| 57 | send_line.o: send_line.c send_line.h |
|---|
| 58 | $(COMPILE) send_line.o send_line.c |
|---|
| 59 | |
|---|
| 60 | recv_line.o: recv_line.c recv_line.h |
|---|
| 61 | $(COMPILE) recv_line.o recv_line.c |
|---|
| 62 | |
|---|
| 63 | helo_cmd.o: helo_cmd.c helo_cmd.h |
|---|
| 64 | $(COMPILE) helo_cmd.o helo_cmd.c |
|---|
| 65 | |
|---|
| 66 | helo_syntax.o: helo_syntax.c helo_syntax.h |
|---|
| 67 | $(COMPILE) helo_syntax.o helo_syntax.c |
|---|
| 68 | |
|---|
| 69 | lr_cmd.o: lr_cmd.c lr_cmd.h |
|---|
| 70 | $(COMPILE) lr_cmd.o lr_cmd.c |
|---|
| 71 | |
|---|
| 72 | lr_syntax.o: lr_syntax.c lr_syntax.h |
|---|
| 73 | $(COMPILE) lr_syntax.o lr_syntax.c |
|---|
| 74 | |
|---|
| 75 | bye_cmd.o: bye_cmd.c bye_cmd.h |
|---|
| 76 | $(COMPILE) bye_cmd.o bye_cmd.c |
|---|
| 77 | |
|---|
| 78 | bye_syntax.o: bye_syntax.c bye_syntax.h |
|---|
| 79 | $(COMPILE) bye_syntax.o bye_syntax.c |
|---|
| 80 | |
|---|
| 81 | uninstall: clean |
|---|
| 82 | |
|---|
| 83 | clean: |
|---|
| 84 | rm -rf *~ |
|---|
| 85 | rm -rf *.o |
|---|
| 86 | rm -rf ispcp_daemon |
|---|
| 87 | |
|---|