Mercurial > forge
annotate main/fixed/src/Makefile @ 3359:4f23e9c5957a octave-forge
merge octave_fixed.dll into fixed.oct to avoid installing files (DLL) outside of the normal package directory [Win32/MSVC]
author | goffioul |
---|---|
date | Wed, 23 May 2007 09:01:11 +0000 |
parents | c9748be75a06 |
children | 9d5056800caa |
rev | line source |
---|---|
2383
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
1 sinclude Makeconf |
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
2 |
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
3 FIXEDVERTARGET = fixedversion.h |
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
4 FIXEDTARGET = fixed.oct |
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
5 |
3065
c9748be75a06
Implement symbol export mechanism similar to octave, for MSVC
goffioul
parents:
2745
diff
changeset
|
6 LIBPRE = lib |
c9748be75a06
Implement symbol export mechanism similar to octave, for MSVC
goffioul
parents:
2745
diff
changeset
|
7 LIBEXT = dll |
c9748be75a06
Implement symbol export mechanism similar to octave, for MSVC
goffioul
parents:
2745
diff
changeset
|
8 LIBIMPEXT = dll.a |
c9748be75a06
Implement symbol export mechanism similar to octave, for MSVC
goffioul
parents:
2745
diff
changeset
|
9 DLLDEF = |
2383
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
10 ifeq (,$(findstring cygwin,$(canonical_host_type))) |
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
11 ifeq (,$(findstring mingw,$(canonical_host_type))) |
3359
4f23e9c5957a
merge octave_fixed.dll into fixed.oct to avoid installing files (DLL) outside of the normal package directory [Win32/MSVC]
goffioul
parents:
3065
diff
changeset
|
12 ifneq (,$(findstring msdosmsvc,$(canonical_host_type))) |
4f23e9c5957a
merge octave_fixed.dll into fixed.oct to avoid installing files (DLL) outside of the normal package directory [Win32/MSVC]
goffioul
parents:
3065
diff
changeset
|
13 DLLDEF = -DFIXED_DLL |
4f23e9c5957a
merge octave_fixed.dll into fixed.oct to avoid installing files (DLL) outside of the normal package directory [Win32/MSVC]
goffioul
parents:
3065
diff
changeset
|
14 endif |
2383
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
15 OCT_INCLUDES_LIB = 1 |
3359
4f23e9c5957a
merge octave_fixed.dll into fixed.oct to avoid installing files (DLL) outside of the normal package directory [Win32/MSVC]
goffioul
parents:
3065
diff
changeset
|
16 else |
4f23e9c5957a
merge octave_fixed.dll into fixed.oct to avoid installing files (DLL) outside of the normal package directory [Win32/MSVC]
goffioul
parents:
3065
diff
changeset
|
17 LIBPRE = |
4f23e9c5957a
merge octave_fixed.dll into fixed.oct to avoid installing files (DLL) outside of the normal package directory [Win32/MSVC]
goffioul
parents:
3065
diff
changeset
|
18 LIBIMPEXT = lib |
4f23e9c5957a
merge octave_fixed.dll into fixed.oct to avoid installing files (DLL) outside of the normal package directory [Win32/MSVC]
goffioul
parents:
3065
diff
changeset
|
19 DLLDEF = -DFIXED_DLL |
4f23e9c5957a
merge octave_fixed.dll into fixed.oct to avoid installing files (DLL) outside of the normal package directory [Win32/MSVC]
goffioul
parents:
3065
diff
changeset
|
20 endif |
2383
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
21 endif |
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
22 |
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
23 ifeq (1,$(OCT_INCLUDES_LIB)) |
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
24 FIXEDSOURCES = fixedColVector.cc fixedRowVector.cc \ |
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
25 fixedMatrix.cc fixedComplex.cc fixedCColVector.cc fixedCRowVector.cc \ |
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
26 fixedCMatrix.cc Array-f.cc fixed-conv.cc ov-fixed.cc ov-fixed-mat.cc \ |
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
27 fixedNDArray.cc fixedCNDArray.cc \ |
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
28 ov-fixed-complex.cc ov-fixed-cx-mat.cc \ |
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
29 op-fs-fs.cc op-fs-fm.cc op-fm-fs.cc op-fm-fm.cc \ |
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
30 op-fs-fcs.cc op-fs-fcm.cc op-fm-fcs.cc op-fm-fcm.cc \ |
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
31 op-fcs-fs.cc op-fcs-fm.cc op-fcm-fs.cc op-fcm-fm.cc \ |
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
32 op-fcs-fcs.cc op-fcs-fcm.cc op-fcm-fcs.cc op-fcm-fcm.cc \ |
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
33 fixed-var.cc fixed.cc |
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
34 FIXEDOBJECTS = fixed-int.o $(patsubst %.cc,%.o,$(FIXEDSOURCES)) |
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
35 FIXEDDEPENDS = fixed-int.d $(patsubst %.cc,%.d,$(FIXEDSOURCES)) |
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
36 |
2397
671181dd32f5
First cut and packaging and test build with configure;make. Works partially, with some broken packages. extras/nonfree to be converted
adb014
parents:
2394
diff
changeset
|
37 TARGETS = $(FIXEDTARGET) |
2383
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
38 OBJECTS = $(FIXEDOBJECTS) |
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
39 |
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
40 EXTRALIBS = |
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
41 else |
3065
c9748be75a06
Implement symbol export mechanism similar to octave, for MSVC
goffioul
parents:
2745
diff
changeset
|
42 FIXEDLIBTARGET = $(LIBPRE)octave_fixed.$(LIBEXT) |
c9748be75a06
Implement symbol export mechanism similar to octave, for MSVC
goffioul
parents:
2745
diff
changeset
|
43 FIXEDIMPTARGET = $(FIXEDLIBTARGET:.$(LIBEXT)=.$(LIBIMPEXT)) |
2383
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
44 FIXEDLIBSOURCES = fixedColVector.cc fixedRowVector.cc \ |
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
45 fixedMatrix.cc fixedComplex.cc fixedCColVector.cc fixedCRowVector.cc \ |
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
46 fixedCMatrix.cc Array-f.cc fixed-conv.cc ov-fixed.cc ov-fixed-mat.cc \ |
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
47 fixedNDArray.cc fixedCNDArray.cc \ |
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
48 ov-fixed-complex.cc ov-fixed-cx-mat.cc \ |
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
49 op-fs-fs.cc op-fs-fm.cc op-fm-fs.cc op-fm-fm.cc \ |
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
50 op-fs-fcs.cc op-fs-fcm.cc op-fm-fcs.cc op-fm-fcm.cc \ |
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
51 op-fcs-fs.cc op-fcs-fm.cc op-fcm-fs.cc op-fcm-fm.cc \ |
3065
c9748be75a06
Implement symbol export mechanism similar to octave, for MSVC
goffioul
parents:
2745
diff
changeset
|
52 op-fcs-fcs.cc op-fcs-fcm.cc op-fcm-fcs.cc op-fcm-fcm.cc |
2383
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
53 FIXEDLIBOBJECTS = fixed-int.o $(patsubst %.cc,%.o,$(FIXEDLIBSOURCES)) |
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
54 FIXEDLIBDEPENDS = fixed-int.d $(patsubst %.cc,%.d,$(FIXEDLIBSOURCES)) |
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
55 |
3065
c9748be75a06
Implement symbol export mechanism similar to octave, for MSVC
goffioul
parents:
2745
diff
changeset
|
56 FIXEDSOURCES = fixed.cc fixed-var.cc |
2383
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
57 FIXEDOBJECTS = $(patsubst %.cc,%.o,$(FIXEDSOURCES)) |
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
58 FIXEDDEPENDS = $(FIXEDLIBDEPENDS) $(patsubst %.cc,%.d,$(FIXEDSOURCES)) |
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
59 |
2397
671181dd32f5
First cut and packaging and test build with configure;make. Works partially, with some broken packages. extras/nonfree to be converted
adb014
parents:
2394
diff
changeset
|
60 TARGETS = $(FIXEDLIBTARGET) $(FIXEDTARGET) |
2383
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
61 OBJECTS = $(FIXEDLIBOBJECTS) $(FIXEDOBJECTS) |
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
62 |
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
63 EXTRALIBS = -L./ -loctave_fixed |
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
64 |
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
65 # The name of this flag changed in version 2.1.54. Use both versions |
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
66 # so that one of them will work. |
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
67 MY_SH_LDFLAGS = $(shell $(MKOCTFILE) -p SH_LDFLAGS) \ |
3065
c9748be75a06
Implement symbol export mechanism similar to octave, for MSVC
goffioul
parents:
2745
diff
changeset
|
68 -Wl,--out-implib=$(FIXEDIMPTARGET) |
2383
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
69 MY_DL_LDFLAGS = $(shell $(MKOCTFILE) -p DL_LDFLAGS) \ |
3065
c9748be75a06
Implement symbol export mechanism similar to octave, for MSVC
goffioul
parents:
2745
diff
changeset
|
70 -Wl,--out-implib=$(FIXEDIMPTARGET) |
2383
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
71 endif |
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
72 |
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
73 ifeq ($(MAKECMDGOALS),all) |
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
74 DEPENDS = $(FIXEDDEPENDS) |
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
75 endif |
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
76 ifeq ($(MAKECMDGOALS),) |
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
77 DEPENDS = $(FIXEDDEPENDS) |
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
78 endif |
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
79 |
3065
c9748be75a06
Implement symbol export mechanism similar to octave, for MSVC
goffioul
parents:
2745
diff
changeset
|
80 DELETES = $(OBJECTS) $(FIXEDDEPENDS) $(TARGETS) $(FIXEDIMPTARGET) \ |
2383
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
81 $(FIXEDVERTARGET) core octave-core *~ *.d-t int/fixed.o int/fixed.d \ |
2745
4b4fbe3a7c2b
Get rid of redundant build code. Fixes build issue on Solaris
adb014
parents:
2400
diff
changeset
|
82 int/fixed.d-t FILES |
2383
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
83 |
2745
4b4fbe3a7c2b
Get rid of redundant build code. Fixes build issue on Solaris
adb014
parents:
2400
diff
changeset
|
84 DEFINES = -DOCTAVE_FORGE |
2383
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
85 MOFLAGS = |
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
86 |
2745
4b4fbe3a7c2b
Get rid of redundant build code. Fixes build issue on Solaris
adb014
parents:
2400
diff
changeset
|
87 .PHONY: all clean count |
2383
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
88 |
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
89 .SUFFIXES: |
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
90 |
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
91 .PRECIOUS: %.d %.o |
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
92 |
2745
4b4fbe3a7c2b
Get rid of redundant build code. Fixes build issue on Solaris
adb014
parents:
2400
diff
changeset
|
93 all : $(TARGETS) |
4b4fbe3a7c2b
Get rid of redundant build code. Fixes build issue on Solaris
adb014
parents:
2400
diff
changeset
|
94 @if [ -f FILES ]; then \ |
4b4fbe3a7c2b
Get rid of redundant build code. Fixes build issue on Solaris
adb014
parents:
2400
diff
changeset
|
95 $(RM) -f FILES; \ |
4b4fbe3a7c2b
Get rid of redundant build code. Fixes build issue on Solaris
adb014
parents:
2400
diff
changeset
|
96 fi; \ |
4b4fbe3a7c2b
Get rid of redundant build code. Fixes build issue on Solaris
adb014
parents:
2400
diff
changeset
|
97 touch FILES; \ |
4b4fbe3a7c2b
Get rid of redundant build code. Fixes build issue on Solaris
adb014
parents:
2400
diff
changeset
|
98 for _f in $(TARGETS); do \ |
4b4fbe3a7c2b
Get rid of redundant build code. Fixes build issue on Solaris
adb014
parents:
2400
diff
changeset
|
99 echo $$_f >> FILES; \ |
4b4fbe3a7c2b
Get rid of redundant build code. Fixes build issue on Solaris
adb014
parents:
2400
diff
changeset
|
100 done |
2383
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
101 |
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
102 ifndef OCTAVE_FORGE |
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
103 install : |
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
104 @echo "Where exactly do you want me to install to!!!" |
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
105 else |
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
106 ifeq (1,$(OCT_INCLUDES_LIB)) |
2745
4b4fbe3a7c2b
Get rid of redundant build code. Fixes build issue on Solaris
adb014
parents:
2400
diff
changeset
|
107 install : |
2383
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
108 @$(INSTALL) -d $(DESTDIR)$(MPATH)/fixed |
3359
4f23e9c5957a
merge octave_fixed.dll into fixed.oct to avoid installing files (DLL) outside of the normal package directory [Win32/MSVC]
goffioul
parents:
3065
diff
changeset
|
109 |
4f23e9c5957a
merge octave_fixed.dll into fixed.oct to avoid installing files (DLL) outside of the normal package directory [Win32/MSVC]
goffioul
parents:
3065
diff
changeset
|
110 $(FIXEDOBJECTS) $(FIXEDDEPENDS): DEFINES := $(DEFINES) $(DLLDEF) |
2383
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
111 else |
2745
4b4fbe3a7c2b
Get rid of redundant build code. Fixes build issue on Solaris
adb014
parents:
2400
diff
changeset
|
112 install : |
2383
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
113 @$(INSTALL) -d $(DESTDIR)$(MPATH)/fixed; \ |
3065
c9748be75a06
Implement symbol export mechanism similar to octave, for MSVC
goffioul
parents:
2745
diff
changeset
|
114 if test ! -e $(bindir)/$(LIBPRE)octave.$(LIBEXT) ; then \ |
2383
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
115 echo "****** WARNING: $(FIXEDLIBTARGET) not correctly installed."; \ |
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
116 echo "****** To ensure correct operation $(FIXEDLIBTARGET) should"; \ |
3065
c9748be75a06
Implement symbol export mechanism similar to octave, for MSVC
goffioul
parents:
2745
diff
changeset
|
117 echo "****** be in the same directory as $(LIBPRE)octave.$(LIBEXT)"; \ |
2383
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
118 fi; \ |
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
119 $(INSTALL) $(FIXEDLIBTARGET) $(bindir); \ |
3065
c9748be75a06
Implement symbol export mechanism similar to octave, for MSVC
goffioul
parents:
2745
diff
changeset
|
120 if test ! -e $(libdir)/$(LIBPRE)octave.$(LIBIMPEXT) ; then \ |
c9748be75a06
Implement symbol export mechanism similar to octave, for MSVC
goffioul
parents:
2745
diff
changeset
|
121 echo "****** WARNING: $(FIXEDIMPTARGET) not correctly installed"; \ |
c9748be75a06
Implement symbol export mechanism similar to octave, for MSVC
goffioul
parents:
2745
diff
changeset
|
122 echo "****** To ensure correct operation $(FIXEDIMPTARGET)"; \ |
c9748be75a06
Implement symbol export mechanism similar to octave, for MSVC
goffioul
parents:
2745
diff
changeset
|
123 echo "****** should be in the same directory as $(LIBPRE)octave.$(LIBIMPEXT)"; \ |
2383
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
124 fi; \ |
3065
c9748be75a06
Implement symbol export mechanism similar to octave, for MSVC
goffioul
parents:
2745
diff
changeset
|
125 $(INSTALL) $(FIXEDIMPTARGET) $(libdir); |
c9748be75a06
Implement symbol export mechanism similar to octave, for MSVC
goffioul
parents:
2745
diff
changeset
|
126 |
c9748be75a06
Implement symbol export mechanism similar to octave, for MSVC
goffioul
parents:
2745
diff
changeset
|
127 $(FIXEDLIBOBJECTS) $(FIXEDLIBDEPENDS): DEFINES := $(DEFINES) $(DLLDEF) |
2383
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
128 |
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
129 $(FIXEDLIBTARGET): $(FIXEDLIBDEPENDS) $(FIXEDLIBOBJECTS) |
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
130 @echo "Linking $@"; \ |
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
131 $(RM) -f $@; \ |
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
132 DL_LDFLAGS="$(MY_DL_LDFLAGS)" SH_LDFLAGS="$(MY_SH_LDFLAGS)" $(MKOCTFILE) -v -o $@ $(FIXEDLIBOBJECTS) |
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
133 endif |
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
134 endif |
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
135 |
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
136 $(FIXEDTARGET) : $(DEPENDS) $(FIXEDOBJECTS) |
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
137 @echo "Linking $@"; \ |
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
138 $(MKOCTFILE) $(MOFLAGS) $(FIXEDOBJECTS) $(EXTRALIBS) -o $@ |
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
139 |
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
140 $(FIXEDVERTARGET) : |
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
141 @echo "Creating $@"; $(RM) -f $@; \ |
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
142 echo "#define OCTAVEFIXEDVERSION \"$(OCTAVEFIXEDVERSION)\"" > $@ |
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
143 |
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
144 ifneq (,$(DEPENDS)) |
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
145 sinclude $(DEPENDS) |
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
146 endif |
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
147 |
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
148 fixed-int.d : int/fixed.cc |
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
149 @echo "Depending $<"; \ |
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
150 $(MKOCTFILE) $(MOFLAGS) $(DEFINES) -M int/fixed.cc; \ |
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
151 $(LN_S) $(patsubst %.cc,%.d,$<) $@ |
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
152 |
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
153 fixed-var.d : $(FIXEDVERTARGET) |
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
154 |
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
155 fixed-int.o : int/fixed.cc fixed-int.d |
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
156 @echo "Compiling $@ from $<"; \ |
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
157 $(MKOCTFILE) $(MOFLAGS) $(DEFINES) -c $<; \ |
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
158 $(RM) -f $@ ; \ |
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
159 $(LN_S) $(patsubst %.cc,%.o,$<) $@ |
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
160 |
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
161 %.d: %.cc |
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
162 @echo "Depending $<"; \ |
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
163 $(MKOCTFILE) $(MOFLAGS) $(DEFINES) -M $< |
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
164 |
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
165 %.o:%.cc |
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
166 %.o:%.cc %.d |
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
167 @echo "Compiling $@"; \ |
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
168 $(MKOCTFILE) $(MOFLAGS) $(DEFINES) -c $< |
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
169 |
2745
4b4fbe3a7c2b
Get rid of redundant build code. Fixes build issue on Solaris
adb014
parents:
2400
diff
changeset
|
170 clean: |
2383
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
171 @echo "Cleaning..."; \ |
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
172 $(RM) -f $(DELETES) |
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
173 |
2745
4b4fbe3a7c2b
Get rid of redundant build code. Fixes build issue on Solaris
adb014
parents:
2400
diff
changeset
|
174 realclean: |
2383
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
175 @echo "Cleaning..."; \ |
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
176 $(RM) -f $(DELETES) |
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
177 |
2745
4b4fbe3a7c2b
Get rid of redundant build code. Fixes build issue on Solaris
adb014
parents:
2400
diff
changeset
|
178 dist: |
2383
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
179 |
2745
4b4fbe3a7c2b
Get rid of redundant build code. Fixes build issue on Solaris
adb014
parents:
2400
diff
changeset
|
180 count: |
2383
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
181 wc *{.cc,.h,.m} int/*.{cc,h} |