Statistics
| Revision:

root / branches / threaded2 / src / linad99 / optg32-rh8-laplace.mak @ 1039

History | View | Annotate | Download (760 Bytes)

1
.PHONY: disk
2
.SUFFIXES: .obj .cpp
3

    
4
LIBNAME = libado.a
5
vpath %.obj $(LIBPATH)
6

    
7
include objects.lst
8

    
9
all: disk
10

    
11
disk: $(DISKDIR)/lib/$(LIBNAME)
12
	cp fvar.hpp $(DISKDIR)/include
13
	cp dfpool.h $(DISKDIR)/include
14
	cp trunc.hpp $(DISKDIR)/include
15
	cp factors.h $(DISKDIR)/include
16
	cp adthread.h $(DISKDIR)/include
17

    
18
$(DISKDIR)/lib/$(LIBNAME): $(OBJ0) $(OBJ1) $(OBJ2) $(OBJ3) $(LIBPATH)/hs_sparse.obj
19
	$(AR) -rs $@ $(addprefix $(LIBPATH)/, $(OBJ0))
20
	$(AR) -rs $@ $(addprefix $(LIBPATH)/, $(OBJ1))
21
	$(AR) -rs $@ $(addprefix $(LIBPATH)/, $(OBJ2))
22
	$(AR) -rs $@ $(addprefix $(LIBPATH)/, $(OBJ3))
23
	$(AR) -rs $@ $(LIBPATH)/hs_sparse.obj
24

    
25
$(LIBPATH)/hs_sparse.obj: ../sparse/hs_sparse.cpp
26
	$(CXX) $(CXXFLAGS) -o $@ $<
27

    
28
%.obj: %.cpp
29
	$(CXX) $(CXXFLAGS) $< -o $(LIBPATH)/$*.obj