1# This is the makefile used to build the dlib C++ library's regression test suite 2# on Debian Linux using the gcc compiler. 3 4# this is the name of the output executable 5TARGET = dtest 6 7# these are the compile time flags passed to gcc 8CXXFLAGS ?= -ggdb -Wall 9CPPFLAGS ?= -std=c++11 -DDEBUG -DDLIB_NO_GUI_SUPPORT -I../.. 10 11# These are the link time flags passed to gcc 12LFLAGS = -lpthread -lnsl 13 14# The name of the compiler. If you only have one version of 15# gcc installed then you probably want to change this to just g++ 16CXX ?= nice g++ 17 18#################################################### 19#################################################### 20# Here we list all the cpp files we want to compile 21 22SRC = main.cpp 23SRC += tester.cpp 24SRC += ../all/source.cpp 25 26SRC += example.cpp 27SRC += example_args.cpp 28 29SRC += active_learning.cpp 30SRC += any.cpp 31SRC += any_function.cpp 32SRC += array2d.cpp 33SRC += array.cpp 34SRC += assignment_learning.cpp 35SRC += base64.cpp 36SRC += bayes_nets.cpp 37SRC += bigint.cpp 38SRC += binary_search_tree_kernel_1a.cpp 39SRC += binary_search_tree_kernel_2a.cpp 40SRC += binary_search_tree_mm1.cpp 41SRC += binary_search_tree_mm2.cpp 42SRC += bridge.cpp 43SRC += bsp.cpp 44SRC += byte_orderer.cpp 45SRC += cca.cpp 46SRC += clustering.cpp 47SRC += cmd_line_parser.cpp 48SRC += cmd_line_parser_wchar_t.cpp 49SRC += compress_stream.cpp 50SRC += conditioning_class_c.cpp 51SRC += conditioning_class.cpp 52SRC += config_reader.cpp 53SRC += crc32.cpp 54SRC += create_iris_datafile.cpp 55SRC += data_io.cpp 56SRC += directed_graph.cpp 57SRC += discriminant_pca.cpp 58SRC += disjoint_subsets.cpp 59SRC += ekm_and_lisf.cpp 60SRC += empirical_kernel_map.cpp 61SRC += entropy_coder.cpp 62SRC += entropy_encoder_model.cpp 63SRC += face.cpp 64SRC += fft.cpp 65SRC += fhog.cpp 66SRC += filtering.cpp 67SRC += find_max_factor_graph_nmplp.cpp 68SRC += find_max_factor_graph_viterbi.cpp 69SRC += geometry.cpp 70SRC += graph.cpp 71SRC += graph_cuts.cpp 72SRC += graph_labeler.cpp 73SRC += hash.cpp 74SRC += hash_map.cpp 75SRC += hash_set.cpp 76SRC += hash_table.cpp 77SRC += hog_image.cpp 78SRC += image.cpp 79SRC += iosockstream.cpp 80SRC += is_same_object.cpp 81SRC += kcentroid.cpp 82SRC += kernel_matrix.cpp 83SRC += kmeans.cpp 84SRC += learning_to_track.cpp 85SRC += least_squares.cpp 86SRC += linear_manifold_regularizer.cpp 87SRC += lspi.cpp 88SRC += lz77_buffer.cpp 89SRC += map.cpp 90SRC += matrix2.cpp 91SRC += matrix3.cpp 92SRC += matrix4.cpp 93SRC += matrix_chol.cpp 94SRC += matrix.cpp 95SRC += matrix_eig.cpp 96SRC += matrix_lu.cpp 97SRC += matrix_qr.cpp 98SRC += max_cost_assignment.cpp 99SRC += max_sum_submatrix.cpp 100SRC += md5.cpp 101SRC += member_function_pointer.cpp 102SRC += metaprogramming.cpp 103SRC += mpc.cpp 104SRC += multithreaded_object.cpp 105SRC += numerical_integration.cpp 106SRC += object_detector.cpp 107SRC += oca.cpp 108SRC += one_vs_all_trainer.cpp 109SRC += one_vs_one_trainer.cpp 110SRC += optimization.cpp 111SRC += optimization_test_functions.cpp 112SRC += opt_qp_solver.cpp 113SRC += parallel_for.cpp 114SRC += parse.cpp 115SRC += pipe.cpp 116SRC += pixel.cpp 117SRC += probabilistic.cpp 118SRC += pyramid_down.cpp 119SRC += queue.cpp 120SRC += rand.cpp 121SRC += ranking.cpp 122SRC += read_write_mutex.cpp 123SRC += reference_counter.cpp 124SRC += rls.cpp 125SRC += sammon.cpp 126SRC += scan_image.cpp 127SRC += sequence.cpp 128SRC += sequence_labeler.cpp 129SRC += sequence_segmenter.cpp 130SRC += serialize.cpp 131SRC += set.cpp 132SRC += sldf.cpp 133SRC += sliding_buffer.cpp 134SRC += sockets2.cpp 135SRC += sockets.cpp 136SRC += sockstreambuf.cpp 137SRC += sparse_vector.cpp 138SRC += stack.cpp 139SRC += static_map.cpp 140SRC += static_set.cpp 141SRC += statistics.cpp 142SRC += std_vector_c.cpp 143SRC += string.cpp 144SRC += svm_c_linear.cpp 145SRC += svm_c_linear_dcd.cpp 146SRC += svm.cpp 147SRC += svm_multiclass_linear.cpp 148SRC += svm_struct.cpp 149SRC += svr_linear_trainer.cpp 150SRC += symmetric_matrix_cache.cpp 151SRC += thread_pool.cpp 152SRC += threads.cpp 153SRC += timer.cpp 154SRC += tokenizer.cpp 155SRC += trust_region.cpp 156SRC += tuple.cpp 157SRC += type_safe_union.cpp 158SRC += vectorstream.cpp 159 160 161#################################################### 162 163TMP = $(SRC:.cpp=.o) 164OBJ = $(TMP:.c=.o) 165 166$(TARGET): $(OBJ) 167 @echo Linking $@ 168 @$(CXX) $(LDFLAGS) $(OBJ) $(LFLAGS) -o $@ 169 @echo Build Complete 170 171clean: 172 @rm -f $(OBJ) $(TARGET) 173 @echo All object files and binaries removed 174 175dep: 176 @echo Running makedepend 177 @makedepend -- $(CFLAGS) -- $(SRC) 2> /dev/null 178 @echo Completed makedepend 179 180############################################################################### 181########## Stuff from makedepend ##### 182########## type make dep at the command line to rebuild the dependencies ##### 183########## Also, DON'T edit the contents of this file beyond this line. ##### 184############################################################################### 185 186