Lines 64-71
Link Here
|
64 |
# |
64 |
# |
65 |
# |
65 |
# |
66 |
# |
66 |
# |
67 |
lib = ../lib/$(MACHINE)/libngsolve.a |
67 |
lib = ../lib/$(MACHINE)/libnetgen_solve.a |
68 |
lib2 = ../lib/$(MACHINE)/libngsolvebasic.a |
68 |
slib = libnetgen_solve.so |
|
|
69 |
lib2 = ../lib/$(MACHINE)/libnetgen_solvebasic.a |
70 |
slib2 = libnetgen_solvebasic.so |
69 |
libold = ../lib/$(MACHINE)/libngsolve_oldla.a |
71 |
libold = ../lib/$(MACHINE)/libngsolve_oldla.a |
70 |
# |
72 |
# |
71 |
# |
73 |
# |
Lines 74-80
Link Here
|
74 |
# |
76 |
# |
75 |
# |
77 |
# |
76 |
# .PRECIOUS: .cpp .hh |
78 |
# .PRECIOUS: .cpp .hh |
77 |
# .SUFFIXES: .cpp .o |
79 |
.SUFFIXES: .cpp .o .lo |
78 |
# |
80 |
# |
79 |
# .cpp.o: |
81 |
# .cpp.o: |
80 |
# $(CPLUSPLUS) -c $< |
82 |
# $(CPLUSPLUS) -c $< |
Lines 84-105
Link Here
|
84 |
# |
86 |
# |
85 |
# make lib from sources: |
87 |
# make lib from sources: |
86 |
# |
88 |
# |
87 |
goal: $(lib) $(lib2) |
89 |
goal: $(lib) $(lib2) ../lib/$(MACHINE)/$(slib) ../lib/$(MACHINE)/$(slib2) |
88 |
# |
90 |
# |
89 |
pebblesinc = -I../../pebbles_old/libsrc/setup -I../../pebbles_old/libsrc/solver -I../../pebbles_old/libsrc/prepro -I../../pebbles_old/libsrc/parallel -I../../pebbles_old/libsrc |
91 |
pebblesinc = -I../../pebbles_old/libsrc/setup -I../../pebbles_old/libsrc/solver -I../../pebbles_old/libsrc/prepro -I../../pebbles_old/libsrc/parallel -I../../pebbles_old/libsrc |
90 |
# |
92 |
# |
|
|
93 |
.cpp.lo: |
94 |
$(CPLUSPLUS) -c -I. -I../libsrc -I../libsrc/include -I../libsrc/interface -Iinclude $(pebblesinc) $(CPLUSPLUSFLAGS2) -DNETGEN_ELTRANS -fPIC -DPIC $< -o $@ |
95 |
|
91 |
$(lib):: $(src) |
96 |
$(lib):: $(src) |
92 |
$(CPLUSPLUS) -c -I. -I../libsrc -I../libsrc/include -I../libsrc/interface -Iinclude $(pebblesinc) $(CPLUSPLUSFLAGS2) -DNETGEN_ELTRANS $? |
97 |
$(CPLUSPLUS) -c -I. -I../libsrc -I../libsrc/include -I../libsrc/interface -Iinclude $(pebblesinc) $(CPLUSPLUSFLAGS2) -DNETGEN_ELTRANS $? |
93 |
$(AR) $(ARFLAGS) $@ *.o |
98 |
$(AR) $(ARFLAGS) $@ *.o |
94 |
mv *.o ../lib/$(MACHINE) |
99 |
mv *.o ../lib/$(MACHINE) |
95 |
-$(RM) *.o |
100 |
-$(RM) *.o |
96 |
-@$(RANLIB) $@ |
101 |
-@$(RANLIB) $@ |
97 |
# |
102 |
|
|
|
103 |
../lib/$(MACHINE)/$(slib):: $(src:%.cpp=%.lo) |
104 |
$(CPLUSPLUS) -shared -o ../lib/$(MACHINE)/$(slib).4.4 $^ -Wl,-soname,$(slib).4.4 |
105 |
ln -sf $(slib).4.4 $@.4 |
106 |
ln -sf $(slib).4.4 $@ |
107 |
|
98 |
$(lib2):: $(src2) |
108 |
$(lib2):: $(src2) |
99 |
$(CPLUSPLUS) -c -I. -I../libsrc/interface -Iinclude $(CPLUSPLUSFLAGS2) $? |
109 |
$(CPLUSPLUS) -c -I. -I../libsrc/interface -Iinclude $(CPLUSPLUSFLAGS2) $? |
100 |
$(AR) $(ARFLAGS) $@ *.o |
110 |
$(AR) $(ARFLAGS) $@ *.o |
101 |
-$(RM) *.o |
111 |
-$(RM) *.o |
102 |
-@$(RANLIB) $@ |
112 |
-@$(RANLIB) $@ |
|
|
113 |
|
114 |
../lib/$(MACHINE)/$(slib2):: $(src2:%.cpp=%.lo) |
115 |
$(CPLUSPLUS) -shared -o ../lib/$(MACHINE)/$(slib2).4.4 $^ -Wl,-soname,$(slib2).4.4 |
116 |
ln -sf $(slib2).4.4 $@.4 |
117 |
ln -sf $(slib2).4.4 $@ |
103 |
# |
118 |
# |
104 |
# |
119 |
# |
105 |
# |
120 |
# |