--- libtango-0.99.9.dfsg.orig/Makefile
+++ libtango-0.99.9.dfsg/Makefile
@@ -0,0 +1,143 @@
+ROOT_DIR	?= .
+OBJS_DIR	?= objs
+
+libs := base user
+
+compiler	?= ldc
+system 		:= $(shell dpkg-architecture -qDEB_HOST_ARCH_OS)
+
+CC		:= gcc
+CFLAGS	:= -g
+
+ifeq (ldc,$(compiler))
+  DC		:= /usr/bin/ldc
+  DFLAGS	:= -I$(ROOT_DIR) -I$(ROOT_DIR)/tango/core -I$(ROOT_DIR)/tango/core/rt/compiler/ldc -g
+
+  base_dirs := \
+	tango/core/rt/compiler/ldc \
+	tango/core/rt/compiler/ldc/ldc \
+	tango/core/rt/compiler/ldc/rt \
+	tango/core/rt/compiler/ldc/typeinfo
+
+endif
+
+base_dirs += \
+	tango/core \
+	tango/core/sync \
+	tango/core/rt/compiler/util \
+	tango/core/rt/gc/basic \
+	tango/core/tools
+
+ifeq (linux,$(system))
+  user_dirs := \
+	tango/sys/linux \
+	tango/sys/linux/consts
+endif
+
+ifeq (kfreebsd,$(system))
+  user_dirs := \
+	tango/sys/freebsd \
+	tango/sys/freebsd/consts
+endif
+
+user_dirs += \
+	tango/time \
+	tango/time/chrono \
+	tango/text \
+	tango/text/xml \
+	tango/text/convert \
+	tango/text/json \
+	tango/text/locale \
+	tango/stdc \
+	tango/stdc/posix \
+	tango/stdc/posix/sys \
+	tango/stdc/posix/arpa \
+	tango/stdc/posix/net \
+	tango/stdc/posix/netinet \
+	tango/sys \
+	tango/sys/consts \
+	tango/math \
+	tango/math/internal \
+	tango/math/random \
+	tango/math/random/engines \
+	tango/net \
+	tango/net/http \
+	tango/net/http/model \
+	tango/net/ftp \
+	tango/net/model \
+	tango/net/device \
+	tango/net/util \
+	tango/net/util/c \
+	tango/io \
+	tango/io/selector \
+	tango/io/selector/model \
+	tango/io/vfs \
+	tango/io/vfs/model \
+	tango/io/model \
+	tango/io/stream \
+	tango/io/device \
+	tango/util \
+	tango/util/encode \
+	tango/util/container \
+	tango/util/container/model \
+	tango/util/container/more \
+	tango/util/log \
+	tango/util/log/model \
+	tango/util/digest
+
+#	tango/io/compress \
+#	tango/io/compress/c \
+
+build-lib		:= stamps/build-lib
+build-dir		:= stamps/build-dir
+build-d-file	:= stamps/build-d-file
+build-c-file	:= stamps/build-c-file
+
+RM		?= rm -f
+MAKE	?= make
+AR		?= ar
+RANLIB	?= ranlib
+
+MAKE	+= --no-print-directory
+
+$(build-c-file)-%:
+#	@echo "- Build file $(subst -,/,$*)"
+	$(CC) $(CFLAGS) -c $(subst -,/,$*) -o $(OBJS_DIR)/$(subst .c,.o,$*)
+
+$(build-d-file)-%:
+#	@echo "- Build file $(subst -,/,$*)"
+	$(DC) $(DFLAGS) -c $(subst -,/,$*) -of$(OBJS_DIR)/$(subst .d,.o,$*)
+
+$(build-dir)-%:
+	@echo "-- Build directory $(subst -,/,$*)"
+	@for file in $(subst /,-,$(wildcard $(subst -,/,$*)/*.d)) ; do \
+		$(MAKE) OBJS_DIR="$(OBJS_DIR)" $(build-d-file)-$$file ; \
+	done
+	@for file in $(subst /,-,$(wildcard $(subst -,/,$*)/*.c)) ; do \
+		$(MAKE) OBJS_DIR="$(OBJS_DIR)" $(build-c-file)-$$file ; \
+	done
+
+$(build-lib)-%:
+	@echo "--- Build library $*"
+	$(RM) -r $(OBJS_DIR)/$* ; mkdir $(OBJS_DIR)/$*
+	@for dir in $(subst /,-,$($*_dirs)) ; do \
+		$(MAKE) OBJS_DIR="$(OBJS_DIR)/$*" $(build-dir)-$$dir ; \
+	done
+#	$(AR) rcu $(OBJS_DIR)/$*/libtango-$*.a $(wildcard $(OBJS_DIR)/$*/*.o)
+	$(AR) rcu $(OBJS_DIR)/$*/libtango-$*-$(compiler).a $(OBJS_DIR)/$*/*.o
+	$(RANLIB) $(OBJS_DIR)/$*/libtango-$*-$(compiler).a
+
+
+build: $(addprefix $(build-lib)-,$(libs))
+
+#	tango/sys/freebsd \
+#	tango/sys/freebsd/consts \
+#	tango/sys/win32 \
+#	tango/sys/win32/consts \
+#	tango/sys/linux \
+#	tango/sys/linux/consts \
+#	tango/sys/solaris \
+#	tango/sys/solaris/consts \
+#	tango/sys/darwin \
+#	tango/sys/darwin/consts \
+
