]> code.citadel.org Git - citadel.git/blobdiff - ctdlsh/Makefile
ctdlsh can now run in interactive mode or accept a single command on the command...
[citadel.git] / ctdlsh / Makefile
index f9940221b347a2231177afeef9b3fc761f2b6972..f8ec41b1fd977bd4bda8e95372a45800ab23bf1f 100644 (file)
@@ -1,3 +1,7 @@
+# MAKEFILE FOR CTDLSH
+# Copyright (c) 2016 by the citadel.org team
+
+# config.mk is generated by ./configure
 include config.mk
 
 OBJS := datetime.o export.o main.o passwd.o shutdown.o sockets.o who.o config.o
@@ -11,7 +15,7 @@ ctdlsh: $(OBJS) config.mk
 
 # compile and generate dependency info
 %.o: %.c
-       gcc -c $(CFLAGS) $*.c -o $*.o
+       gcc -c $(CFLAGS) -DCTDLDIR=\"$(CTDLDIR)\" $*.c -o $*.o
        gcc -MM $(CFLAGS) $*.c > $*.d
 
 config.mk:
@@ -24,4 +28,7 @@ distclean: clean
        rm -f config.mk
 
 install: ctdlsh
-       echo Not yet
+       install ctdlsh $(BINDIR)/ctdlsh
+
+uninstall:
+       rm -vf $(BINDIR)/ctdlsh