This is an omnibus commit which moves the Citadel Server from crusty old GNU Autotool...
[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 citserver: server/*.c server/modules/*/*.c config.mk
21         cc ${CFLAGS} \
22                 server/*.c server/modules/*/*.c \
23                 ${LDFLAGS} -lresolv -lcitadel -lpthread -lz -lical -lldap -lcrypt -lexpat -lcurl -ldb \
24                 -o citserver
25
26 config.mk: configure
27         ./configure