1 # Makefile for Citadel Server
2 # Copyright (c) 1987-2022 by Art Cancro and the citadel.org team
4 # This is the new and improved version that does not use the GNU Autotools,
5 # because it is The Current Year and we aren't trying to build for weird
6 # obscure systems anymore.
8 # This program is open source software. Use, duplication, and/or
9 # disclosure are subject to the GNU General Purpose License version 3.
11 # This program is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 # GNU General Public License for more details.
17 # config.mk is generated by ./configure
20 all: citserver setup ctdlmigrate sendcommand
22 citserver: server/*.c server/modules/*/*.c config.mk server/*.h
24 server/*.c server/modules/*/*.c \
25 ${LDFLAGS} -lresolv -lcitadel -lpthread -lz -lical -lldap -lcrypt -lexpat -lcurl -ldb \
28 setup: utils/setup.c server/citadel_dirs.c utils/*.h server/*.h
29 cc ${CFLAGS} utils/setup.c -lcitadel -o setup
31 ctdlmigrate: utils/ctdlmigrate.c server/citadel_dirs.c utils/*.h server/*.h
32 cc ${CFLAGS} utils/ctdlmigrate.c -lcitadel -lreadline -o ctdlmigrate
34 sendcommand: utils/sendcommand.c server/citadel_dirs.c utils/*.h server/*.h
35 cc ${CFLAGS} utils/sendcommand.c -lcitadel -o sendcommand
42 find . -name *.o | xargs rm -vf
45 # In conf-IG-ure, "distclean" is the same as "clean"