1 # MAKEFILE FOR CITADEL TEXT CLIENT
2 # This file is part of "conf-IG-ure"
3 # Copyright (C) 2016-2022 by Art Cancro
5 # This program is open source software. Use, duplication, and/or
6 # disclosure are subject to the GNU General Purpose License version 3.
8 # This program is distributed in the hope that it will be useful,
9 # but WITHOUT ANY WARRANTY; without even the implied warranty of
10 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 # GNU General Public License for more details.
13 # config.mk is generated by ./configure
16 OBJS := citadel.o citadel_ipc.o client_chat.o client_passwords.o commands.o ipc_c_tcp.o messages.o rooms.o routines2.o routines.o screen.o tuiconfig.o
20 citadel: $(OBJS) config.mk
21 gcc $(OBJS) $(LDFLAGS) -lcitadel -o citadel
23 # pull in dependency info for *existing* .o files
24 -include $(OBJS:.o=.d)
26 # compile and generate dependency info
28 gcc -c $(CFLAGS) -DCTDLDIR=\"$(CTDLDIR)\" $*.c -o $*.o
29 gcc -MM $(CFLAGS) $*.c > $*.d
40 install: citadel citadel.rc
41 install citadel $(BINDIR)/citadel
42 install citadel.rc $(ETCDIR)/citadel.rc
45 rm -vf $(BINDIR)/citadel