r241 - in /apt-transport-debtorrent/trunk: Makefile apti18n.h apti18n.h.in debtorrent.cc debtorrent.h http.cc http.h

camrdale-guest at users.alioth.debian.org camrdale-guest at users.alioth.debian.org
Tue Aug 14 22:33:40 UTC 2007


Author: camrdale-guest
Date: Tue Aug 14 22:33:40 2007
New Revision: 241

URL: http://svn.debian.org/wsvn/debtorrent/?sc=1&rev=241
Log:
Rename the old files and add the Makefile.

Added:
    apt-transport-debtorrent/trunk/Makefile
    apt-transport-debtorrent/trunk/apti18n.h
      - copied unchanged from r240, apt-transport-debtorrent/trunk/apti18n.h.in
    apt-transport-debtorrent/trunk/debtorrent.cc
      - copied unchanged from r240, apt-transport-debtorrent/trunk/http.cc
    apt-transport-debtorrent/trunk/debtorrent.h
      - copied unchanged from r240, apt-transport-debtorrent/trunk/http.h
Removed:
    apt-transport-debtorrent/trunk/apti18n.h.in
    apt-transport-debtorrent/trunk/http.cc
    apt-transport-debtorrent/trunk/http.h

Added: apt-transport-debtorrent/trunk/Makefile
URL: http://svn.debian.org/wsvn/debtorrent/apt-transport-debtorrent/trunk/Makefile?rev=241&op=file
==============================================================================
--- apt-transport-debtorrent/trunk/Makefile (added)
+++ apt-transport-debtorrent/trunk/Makefile Tue Aug 14 22:33:40 2007
@@ -1,0 +1,31 @@
+# Debian makefile for apt-transport-debtorrent
+
+all: debtorrent
+
+CXXFLAGS = -g -O2 -Wall -D_DEBUG_
+LDLIBS = -lapt-pkg
+
+debtorrent_SRCS = debtorrent.cc connect.cc rfc2553emu.cc
+debtorrent_OBJS = $(patsubst %.cc,%.o,$(debtorrent_SRCS))
+debtorrent_DEPS = $(patsubst %.cc,.%.d,$(debtorrent_SRCS))
+
+$(debtorrent_OBJS) : %.o : %.cc
+	$(CXX) -c $(CXXFLAGS) $< -o $@
+
+$(debtorrent_DEPS) : .%.d : %.cc
+	$(CXX) -MM $(CXXFLAGS) $<  > $@
+
+include $(debtorrent_DEPS)	
+
+debtorrent : $(debtorrent_OBJS)
+	$(CXX) -o $@ $(debtorrent_OBJS) $(LDLIBS)
+
+.PHONY : clean clean-deps dist    
+
+clean:
+	rm -f *.o *~ core debtorrent *.dump *.tar
+
+clean-deps:
+	rm -f .*.d
+
+.PHONY: all clean




More information about the Debtorrent-commits mailing list