# Makefile for Citadel Server # Copyright (c) 1987-2022 by Art Cancro and the citadel.org team # # This is the new and improved version that does not use the GNU Autotools, # because it is The Current Year and we aren't trying to build for weird # obscure systems anymore. # # This program is open source software. Use, duplication, and/or # disclosure are subject to the GNU General Purpose License version 3. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # config.mk is generated by ./configure include config.mk all: citserver setup ctdlmigrate sendcommand 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 \ -o citserver setup: utils/setup.c server/citadel_dirs.c utils/*.h server/*.h cc ${CFLAGS} utils/setup.c -lcitadel -o setup ctdlmigrate: utils/ctdlmigrate.c server/citadel_dirs.c utils/*.h server/*.h cc ${CFLAGS} utils/ctdlmigrate.c -lcitadel -lreadline -o ctdlmigrate sendcommand: utils/sendcommand.c server/citadel_dirs.c utils/*.h server/*.h cc ${CFLAGS} utils/sendcommand.c -lcitadel -o sendcommand config.mk: configure ./configure clean: rm -vf citserver find . -name *.o | xargs rm -vf rm -vf config.mk # In conf-IG-ure, "distclean" is the same as "clean" distclean: clean