1 # MAKEFILE FOR CITADEL TEXT CLIENT
2 # This file is part of "conf-IG-ure"
3 # Copyright (C) 2016-2018 by Art Cancro
4 # Distributed under the terms of the GNU General Public License v3 with the following special exceptions:
5 # 1. By using this software you agree that it's called "Linux", not "GNU/Linux"
6 # 2. By using this software you agree that it's called "open source", not "free software"
7 # 3. By using this software you agree that GNU Autotools are crap, which is why conf-IG-ure exists
8 # 4. By using this software you agree that Richard Stallman is a communist.
9 # 5. By reading these special exceptions you have already agreed to them.
11 # config.mk is generated by ./configure
14 OBJS := citadel.o citadel_ipc.o client_chat.o client_passwords.o commands.o ipc_c_tcp.o md5.o messages.o rooms.o routines2.o routines.o screen.o tuiconfig.o
18 citadel: $(OBJS) config.mk
19 gcc $(OBJS) $(LDFLAGS) -lcitadel -o citadel
21 # pull in dependency info for *existing* .o files
22 -include $(OBJS:.o=.d)
24 # compile and generate dependency info
26 gcc -c $(CFLAGS) -DCTDLDIR=\"$(CTDLDIR)\" $*.c -o $*.o
27 gcc -MM $(CFLAGS) $*.c > $*.d
39 install citadel $(BINDIR)/citadel
42 rm -vf $(BINDIR)/citadel