Index: ecm-1.00/Makefile
===================================================================
--- /dev/null	1970-01-01 00:00:00.000000000 +0000
+++ ecm-1.00/Makefile	2009-06-02 12:14:07.000000000 +0200
@@ -0,0 +1,44 @@
+#!/usr/bin/make -f
+# -*- makefile -*-
+############################################################################
+# Makefile for ECM
+#	Copyright (C) 2008  Loïc Martin
+#
+#    This program is free software: you can redistribute it and/or modify
+#    it under the terms of the GNU General Public License as published by
+#    the Free Software Foundation, either version 2 of the License, or
+#    (at your option) any later version.
+#
+#    This program is distributed in the hope that it will be useful,
+#    but WITHOUT ANY WARRANTY; without even the implied warranty of
+#    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+#    GNU General Public License for more details.
+#
+#    You should have received a copy of the GNU General Public License
+#    along with this program.  If not, see <http://www.gnu.org/licenses/>.
+############################################################################
+
+CC = gcc
+CFLAGS = -Wall -pedantic
+allfiles = ecm-compress ecm-uncompress
+
+
+all : ecm-compress ecm-uncompress
+
+ecm-compress : ecm.c
+	$(CC) $(CFLAGS) $< -o $@
+
+ecm-uncompress : unecm.c
+	$(CC) $(CFLAGS) $< -o $@
+
+.PHONY : install clean uninstall
+
+install: all
+	install -d $(DESTDIR)/usr/bin
+	install -m 755 -t $(DESTDIR)/usr/bin $(allfiles)
+
+uninstall:
+	for f in $(allfiles); do rm -f $(DESTDIR)/usr/bin/$$f; done
+
+clean:
+	rm -f $(allfiles)
