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

  Switch to unified view

a b/Makefile
1
LIBSIFT_SOURCES=LoweDetector.c RANSAC.c GaussianConvolution.c ScaleSpace.c \
2
      KeypointXML.c MatchKeys.c KDTree.c BondBall.c AreaFilter.c \
3
      ImageMatchModel.c Transform.c DisplayImage.c ImageMap.c \
4
      HashTable.c ArrayList.c Random.c SimpleMatrix.c \
5
      Utils.c
6
GENERATEKEYS_SOURCES=GenerateKeys.c 
7
AUTOPANO_SOURCES=AutoPano.c 
8
TEST_SOURCES=TestRandom.c TestArray.c TestKDTree.c
9
10
SOURCES=$(LIBSIFT_SOURCES) $(GENERATEKEY_SOURCES) $(AUTOPANO_SOURCES) $(TEST_SOURCES)
11
12
LIBSIFT_OBJECTS=$(patsubst %.c,%.o,$(LIBSIFT_SOURCES))
13
GENERATEKEYS_OBJECTS=$(patsubst %.c,%.o,$(GENERATEKEYS_SOURCES))
14
AUTOPANO_OBJECTS=$(patsubst %.c,%.o,$(AUTOPANO_SOURCES))
15
TEST_OBJECTS=$(patsubst %.c,%.o,$(TEST_SOURCES))
16
17
OBJECTS=$(LIBSIFT_OBJECTS) $(GENERATEKEYS_OBJECTS) $(AUTOPANO_OBJECTS) $(TEST_OBJECTS)
18
19
20
LIBSIFT=libsift.a
21
VERSION=2.4
22
NAME=autopano-sift-C
23
24
CC=gcc
25
CFLAGS=-I/usr/include/libxml2 -Wall -O2
26
LDFLAGS= -L.
27
LDLIBS= -lsift -lpano12 -lxml2 -lm
28
29
#CC=ccmalloc gcc
30
#LINK.o=ccmalloc g++ $(LDFLAGS)
31
32
TOOLS=generatekeys autopano
33
TESTS=TestRandom TestArray TestSimpleMatrix TestTransform \
34
  TestRansac TestAreaFilter TestKDTree
35
36
BINARIES=libsift.a $(TOOLS) $(TESTS)
37
38
all: $(LIBSIFT) $(TOOLS)
39
40
tests: $(TESTS)
41
42
$(TEST_OBJECTS) $(TOOLS): $(LIBSIFT)
43
$(OBJECTS): AutoPanoSift.h
44
45
TestArray.o: TestArray.c
46
  $(CC) $(CFLAGS) -DTEST_MAIN -c $< -o $@
47
48
TestRandom.o: TestRandom.c
49
  $(CC) $(CFLAGS) -DTEST_MAIN -c $< -o $@
50
51
TestSimpleMatrix.o: SimpleMatrix.c
52
  $(CC) $(CFLAGS) -DTEST_MAIN -c $< -o $@
53
54
TestTransform.o: Transform.c 
55
  $(CC) $(CFLAGS) -DTEST_MAIN -c $< -o $@
56
57
TestRansac.o: RANSAC.c 
58
  $(CC) $(CFLAGS) -DTEST_MAIN -c $< -o $@
59
60
TestAreaFilter.o: AreaFilter.c 
61
  $(CC) $(CFLAGS) -DTEST_MAIN -c $< -o $@
62
63
TestKDTree.o: TestKDTree.c 
64
  $(CC) $(CFLAGS) -DTEST_MAIN -c $< -o $@
65
66
67
libsift.a: $(LIBSIFT_OBJECTS)
68
  ar cru $@ $^
69
  ranlib $@
70
71
generatekeys: $(GENERATEKEYS_OBJECTS)
72
  $(LINK.o) $^ $(LDLIBS) -o $@
73
74
autopano: $(AUTOPANO_OBJECTS)
75
  $(LINK.o) $^ $(LDLIBS) -o $@
76
77
78
dep:
79
  makedepend $(CFLAGS) $(SOURCES)
80
81
82
dist:
83
  mkdir $(NAME)-$(VERSION)
84
  mkdir $(NAME)-$(VERSION)/doc
85
  cp -a {Makefile,*.h,*.c,README*,LICENSE,*.sh} $(NAME)-$(VERSION)
86
  cp -a doc/*.{1,7,txt} $(NAME)-$(VERSION)/doc
87
  tar zcvf $(NAME)-$(VERSION).tar.gz $(NAME)-$(VERSION)
88
  rm -rf $(NAME)-$(VERSION)
89
90
clean: 
91
  rm -f $(OBJECTS) $(BINARIES) core *~

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks