# Makefile for Citadel Server
-# Copyright (c) 1987-2022 by Art Cancro and the citadel.org team
+# Copyright (c) 1987-2023 by Art Cancro and the citadel.org team
#
# No, we are NOT using the obsolete GNU Autotools. This configure script works
# well on the Linux operating system (which uses the Linux kernel) and on BSD.
# This program is open source software. Use, duplication, and/or
# disclosure are subject to the GNU General Purpose License version 3.
-
# config.mk is generated by ./configure
include config.mk
-all := citserver setup ctdlmigrate sendcommand citmail chkpw chkpwd
+all := citserver setup ctdlmigrate sendcommand citmail chkpw chkpwd #ctdl3264
all: $(all)
citserver: server/*.c server/modules/*/*.c config.mk server/*.h
cc ${CFLAGS} \
server/*.c server/modules/*/*.c \
${LDFLAGS} -lresolv -lcitadel -lpthread -lz -lical -lldap -lcrypt -lexpat -lcurl -ldb \
- -Wno-deprecated-declarations \
-o citserver
setup: utils/setup.c server/citadel_dirs.c utils/*.h server/*.h
chkpwd: utils/chkpwd.c utils/auth.c utils/*.h server/*.h
cc ${CFLAGS} ${LDFLAGS} utils/chkpwd.c utils/auth.c -lcrypt -o chkpwd
+ctdl3264: utils/ctdl3264.c utils/*.h server/*.h utils/ctdl3264_structs.h
+ cc ${CFLAGS} ${LDFLAGS} utils/ctdl3264.c -lcitadel -lz -ldb -o ctdl3264
+
+utils/ctdl3264_structs.h: server/server.h utils/ctdl3264_prep.sh
+ utils/ctdl3264_prep.sh
+
config.mk: configure
./configure