2 # Copyright (c) 2016 by the citadel.org team
4 # config.mk is generated by ./configure
7 OBJS := datetime.o export.o main.o passwd.o shutdown.o sockets.o who.o config.o mailq.o
10 ctdlsh: $(OBJS) config.mk
11 gcc $(OBJS) $(LDFLAGS) -lreadline -lcitadel -o ctdlsh
13 # pull in dependency info for *existing* .o files
14 -include $(OBJS:.o=.d)
16 # compile and generate dependency info
18 gcc -c $(CFLAGS) -DCTDLDIR=\"$(CTDLDIR)\" $*.c -o $*.o
19 gcc -MM $(CFLAGS) $*.c > $*.d
31 install ctdlsh $(BINDIR)/ctdlsh
34 rm -vf $(BINDIR)/ctdlsh