summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorNick White <arch@njw.me.uk>2007-02-28 17:51:46 +0000
committerNick White <arch@njw.me.uk>2007-02-28 17:51:46 +0000
commit877096c9f399e6a12c48f792f5896c04cf338acb (patch)
treea13331383a0a269cfe26a2783ec551f1b3ef1166 /Makefile
Initial importmaster--base-0
git-archimport-id: getht@sv.gnu.org/getht--mainline--0.1--base-0
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile37
1 files changed, 37 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..b9925cc
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,37 @@
+PREFIX=/usr
+DOCS=AUTHOR COPYING CREDITS ChangeLog INSTALL README TODO
+CFLAGS+=-g `curl-config --cflags` `xml2-config --cflags`
+LDFLAGS+=`curl-config --libs` `xml2-config --libs`
+
+all: getht
+
+getht: download.o config.o tocxml.o mediarev.o mediaxml.o xml.o
+
+tocxml.o mediaxml.o: xml.o
+
+static:
+ CFLAGS="$(CFLAGS) -s -static"
+ @echo "Not implemented yet, sorry."
+
+clean:
+ rm -rf *.o
+
+install:
+ cp getht $(PREFIX)/bin
+ mkdir -p $(PREFIX)/doc/getht
+ cp $(DOCS) $(PREFIX)/doc/getht
+
+uninstall:
+ rm $(PREFIX)/bin/getht
+ rm -r $(PREFIX)/doc/getht
+
+help:
+ @echo -e "Make targets:"
+ @echo -e "make (all)\tBuilds GetHT with default settings"
+ @echo -e "make install\tInstalls GetHT"
+ @echo -e "make uninstall\tRemoves GetHT"
+ @echo -e "make clean\tRemoves all object files"
+ @echo -e "make static\tBuilds a statically linked GetHT binary"
+ @echo -e "make help\tPrint this help message"
+
+.PHONY: all clean install uninstall help