~libmatrix-dev/libmatrix/trunk

« back to all changes in this revision

Viewing changes to Makefile

  • Committer: Jesse Barker
  • Date: 2011-06-16 21:35:35 UTC
  • Revision ID: jesse.barker@linaro.org-20110616213535-u48sdrp56pr8k10i
Add matrix_inverse_test and build it by default.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
TARGETS = libmatrix.a
2
 
SRCS = mat.cc program.cc
 
1
TARGETS = libmatrix.a matrix_inverse_test
 
2
SRCS = mat.cc program.cc matrix_inverse_test.cc
3
3
OBJS = $(SRCS:.cc=.o)
4
4
CXXFLAGS = -Wall -Werror -pedantic -O3
5
5
 
6
6
default: $(TARGETS)
7
7
 
8
8
mat.o : mat.cc mat.h
9
 
program.o: program.o program.h
10
 
 
 
9
program.o: program.cc program.h
 
10
matrix_inverse_test.o: matrix_inverse_test.cc mat.h
 
11
matrix_inverse_test: matrix_inverse_test.o libmatrix.a
 
12
        $(CXX) -o $@ $?
11
13
libmatrix.a : mat.o mat.h stack.h vec.h program.o program.h
12
14
        $(AR) -r $@  $(OBJS)
13
15