ctdlsh configure script is now awesomer than gnu autotools.
[citadel.git] / ctdlsh / Makefile
index a74b7394e774029958c017658b3d9625e8e92aa0..f8ec41b1fd977bd4bda8e95372a45800ab23bf1f 100644 (file)
@@ -15,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:
@@ -28,4 +28,7 @@ distclean: clean
        rm -f config.mk
 
 install: ctdlsh
-       echo Not yet
+       install ctdlsh $(BINDIR)/ctdlsh
+
+uninstall:
+       rm -vf $(BINDIR)/ctdlsh