bf4b39b6e03491d3d358bbf475c5be805bbafb67
[citadel.git] / citadel / Makefile
1 # Makefile for Citadel Server
2 # Copyright (c) 1987-2022 by Art Cancro and the citadel.org team
3
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.
7 #
8 # This program is open source software.  Use, duplication, and/or
9 # disclosure are subject to the GNU General Purpose License version 3.
10 #
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.
15
16
17 # config.mk is generated by ./configure
18 include config.mk
19
20 all: citserver setup
21
22 citserver: server/*.c server/modules/*/*.c config.mk server/*.h
23         cc ${CFLAGS} \
24                 server/*.c server/modules/*/*.c \
25                 ${LDFLAGS} -lresolv -lcitadel -lpthread -lz -lical -lldap -lcrypt -lexpat -lcurl -ldb \
26                 -o citserver
27
28 setup: utils/setup.c server/citadel_dirs.c utils/*.h server/*.h
29         cc ${CFLAGS} utils/setup.c -lcitadel -o setup
30
31 config.mk: configure
32         ./configure
33
34 clean:
35         rm -vf citserver
36         find . -name *.o | xargs rm -vf
37         rm -vf config.mk
38
39 # In conf-IG-ure, "distclean" is the same as "clean"
40 distclean: clean