tMakefile - numeric - C++ library with numerical algorithms
(HTM) git clone git://src.adamsgaard.dk/numeric
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) LICENSE
---
tMakefile (364B)
---
1 #!/bin/env make
2
3 SHELL = /bin/sh
4 CC = g++
5 CFLAGS = -Wall -O3
6 OBJ = rkdriver.o rkstep.o
7 BIN = ode
8
9 all: $(BIN) ODE.output ode.png
10
11 ODE.output: $(BIN)
12 ./$(BIN) > ODE.output
13
14 $(BIN): main.o rkdriver.o rkstep.o
15 $(CC) $(CFLAGS) -o $(BIN) main.o $(OBJ)
16
17 clean:
18 rm -f $(BIN) *.txt *~ *.output *.png *.o
19
20 %.png: plot.gp
21 gnuplot < $<
22
23 edit:
24 vim -p Makefile *.cpp *.gp