Updated the boilerplate on each file
[citadel.git] / textclient / Makefile
1 # MAKEFILE FOR CITADEL TEXT CLIENT
2 # This file is part of "conf-IG-ure"
3 # Copyright (C) 2016-2018 by Art Cancro
4 #
5 # This program is open source software.  Use, duplication, and/or
6 # disclosure are subject to the GNU General Purpose License version 3.
7 #
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.
12
13 # config.mk is generated by ./configure
14 include config.mk
15
16 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
17
18
19 # link
20 citadel: $(OBJS) config.mk
21         gcc $(OBJS) $(LDFLAGS) -lcitadel -o citadel
22
23 # pull in dependency info for *existing* .o files
24 -include $(OBJS:.o=.d)
25
26 # compile and generate dependency info
27 %.o: %.c
28         gcc -c $(CFLAGS) -DCTDLDIR=\"$(CTDLDIR)\" $*.c -o $*.o
29         gcc -MM $(CFLAGS) $*.c > $*.d
30
31 config.mk:
32         ./configure
33
34 clean:
35         rm -f citadel *.o *.d
36
37 distclean: clean
38         rm -f config.mk
39
40 install: citadel citadel.rc
41         install citadel $(BINDIR)/citadel
42         install citadel.rc $(ETCDIR)/citadel.rc
43
44 uninstall:
45         rm -vf $(BINDIR)/citadel