Diff of /Makefile [000000] .. [26cac0]  Maximize  Restore

Switch to side-by-side view

--- a
+++ b/Makefile
@@ -0,0 +1,91 @@
+LIBSIFT_SOURCES=LoweDetector.c RANSAC.c GaussianConvolution.c ScaleSpace.c \
+		KeypointXML.c MatchKeys.c KDTree.c BondBall.c AreaFilter.c \
+		ImageMatchModel.c Transform.c DisplayImage.c ImageMap.c \
+		HashTable.c ArrayList.c Random.c SimpleMatrix.c \
+		Utils.c
+GENERATEKEYS_SOURCES=GenerateKeys.c 
+AUTOPANO_SOURCES=AutoPano.c 
+TEST_SOURCES=TestRandom.c TestArray.c TestKDTree.c
+
+SOURCES=$(LIBSIFT_SOURCES) $(GENERATEKEY_SOURCES) $(AUTOPANO_SOURCES) $(TEST_SOURCES)
+
+LIBSIFT_OBJECTS=$(patsubst %.c,%.o,$(LIBSIFT_SOURCES))
+GENERATEKEYS_OBJECTS=$(patsubst %.c,%.o,$(GENERATEKEYS_SOURCES))
+AUTOPANO_OBJECTS=$(patsubst %.c,%.o,$(AUTOPANO_SOURCES))
+TEST_OBJECTS=$(patsubst %.c,%.o,$(TEST_SOURCES))
+
+OBJECTS=$(LIBSIFT_OBJECTS) $(GENERATEKEYS_OBJECTS) $(AUTOPANO_OBJECTS) $(TEST_OBJECTS)
+
+
+LIBSIFT=libsift.a
+VERSION=2.4
+NAME=autopano-sift-C
+
+CC=gcc
+CFLAGS=-I/usr/include/libxml2 -Wall -O2
+LDFLAGS= -L.
+LDLIBS= -lsift -lpano12 -lxml2 -lm
+
+#CC=ccmalloc gcc
+#LINK.o=ccmalloc g++ $(LDFLAGS)
+
+TOOLS=generatekeys autopano
+TESTS=TestRandom TestArray TestSimpleMatrix TestTransform \
+	TestRansac TestAreaFilter TestKDTree
+
+BINARIES=libsift.a $(TOOLS) $(TESTS)
+
+all: $(LIBSIFT) $(TOOLS)
+
+tests: $(TESTS)
+
+$(TEST_OBJECTS) $(TOOLS): $(LIBSIFT)
+$(OBJECTS): AutoPanoSift.h
+
+TestArray.o: TestArray.c
+	$(CC) $(CFLAGS) -DTEST_MAIN -c $< -o $@
+
+TestRandom.o: TestRandom.c
+	$(CC) $(CFLAGS) -DTEST_MAIN -c $< -o $@
+
+TestSimpleMatrix.o: SimpleMatrix.c
+	$(CC) $(CFLAGS) -DTEST_MAIN -c $< -o $@
+
+TestTransform.o: Transform.c 
+	$(CC) $(CFLAGS) -DTEST_MAIN -c $< -o $@
+
+TestRansac.o: RANSAC.c 
+	$(CC) $(CFLAGS) -DTEST_MAIN -c $< -o $@
+
+TestAreaFilter.o: AreaFilter.c 
+	$(CC) $(CFLAGS) -DTEST_MAIN -c $< -o $@
+
+TestKDTree.o: TestKDTree.c 
+	$(CC) $(CFLAGS) -DTEST_MAIN -c $< -o $@
+
+
+libsift.a: $(LIBSIFT_OBJECTS)
+	ar cru $@ $^
+	ranlib $@
+
+generatekeys: $(GENERATEKEYS_OBJECTS)
+	$(LINK.o) $^ $(LDLIBS) -o $@
+
+autopano: $(AUTOPANO_OBJECTS)
+	$(LINK.o) $^ $(LDLIBS) -o $@
+
+
+dep:
+	makedepend $(CFLAGS) $(SOURCES)
+
+
+dist:
+	mkdir $(NAME)-$(VERSION)
+	mkdir $(NAME)-$(VERSION)/doc
+	cp -a {Makefile,*.h,*.c,README*,LICENSE,*.sh} $(NAME)-$(VERSION)
+	cp -a doc/*.{1,7,txt} $(NAME)-$(VERSION)/doc
+	tar zcvf $(NAME)-$(VERSION).tar.gz $(NAME)-$(VERSION)
+	rm -rf $(NAME)-$(VERSION)
+
+clean: 
+	rm -f $(OBJECTS) $(BINARIES) core *~