Statistics
| Revision:

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

History | View | Annotate | Download (740 Bytes)

1
.PHONY: disk
2

    
3
LIBNAME = libads.a
4
SRCDIR = src
5
.SUFFIXES: .obj .cpp
6
vpath %.obj $(LIBPATH)
7

    
8
include objects.lst
9

    
10
all: disk
11

    
12
disk: $(DISKDIR)/lib/$(LIBNAME)
13
	cp fvar.hpp $(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)/$(@F) $<