Mercurial > forge
annotate main/fixed/src/Makefile @ 4309:9d5056800caa octave-forge
Fix build issue with cygwin/mingw (For Tatsuro Matsuoka)
author | adb014 |
---|---|
date | Tue, 08 Jan 2008 21:31:59 +0000 |
parents | 4f23e9c5957a |
children | 5c46c15f6053 |
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 |
4309
9d5056800caa
Fix build issue with cygwin/mingw (For Tatsuro Matsuoka)
adb014
parents:
3359
diff
changeset
|
7 LIBEXT = a |
3065
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 = |
4309
9d5056800caa
Fix build issue with cygwin/mingw (For Tatsuro Matsuoka)
adb014
parents:
3359
diff
changeset
|
10 |
9d5056800caa
Fix build issue with cygwin/mingw (For Tatsuro Matsuoka)
adb014
parents:
3359
diff
changeset
|
11 ifeq (,$(findstring msdosmsvc,$(canonical_host_type))) |
9d5056800caa
Fix build issue with cygwin/mingw (For Tatsuro Matsuoka)
adb014
parents:
3359
diff
changeset
|
12 LIBPRE = |
9d5056800caa
Fix build issue with cygwin/mingw (For Tatsuro Matsuoka)
adb014
parents:
3359
diff
changeset
|
13 LIBEXT = lib |
9d5056800caa
Fix build issue with cygwin/mingw (For Tatsuro Matsuoka)
adb014
parents:
3359
diff
changeset
|
14 LIBIMPEXT = lib |
9d5056800caa
Fix build issue with cygwin/mingw (For Tatsuro Matsuoka)
adb014
parents:
3359
diff
changeset
|
15 DLLDEF = |
2383
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
16 endif |
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
17 |
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
18 ifeq (1,$(OCT_INCLUDES_LIB)) |
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
19 FIXEDSOURCES = fixedColVector.cc fixedRowVector.cc \ |
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
20 fixedMatrix.cc fixedComplex.cc fixedCColVector.cc fixedCRowVector.cc \ |
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
21 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
|
22 fixedNDArray.cc fixedCNDArray.cc \ |
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
23 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
|
24 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
|
25 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
|
26 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
|
27 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
|
28 fixed-var.cc fixed.cc |
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
29 FIXEDOBJECTS = fixed-int.o $(patsubst %.cc,%.o,$(FIXEDSOURCES)) |
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
30 FIXEDDEPENDS = fixed-int.d $(patsubst %.cc,%.d,$(FIXEDSOURCES)) |
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
31 |
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
|
32 TARGETS = $(FIXEDTARGET) |
2383
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
33 OBJECTS = $(FIXEDOBJECTS) |
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
34 |
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
35 EXTRALIBS = |
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
36 else |
3065
c9748be75a06
Implement symbol export mechanism similar to octave, for MSVC
goffioul
parents:
2745
diff
changeset
|
37 FIXEDLIBTARGET = $(LIBPRE)octave_fixed.$(LIBEXT) |
c9748be75a06
Implement symbol export mechanism similar to octave, for MSVC
goffioul
parents:
2745
diff
changeset
|
38 FIXEDIMPTARGET = $(FIXEDLIBTARGET:.$(LIBEXT)=.$(LIBIMPEXT)) |
2383
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
39 FIXEDLIBSOURCES = fixedColVector.cc fixedRowVector.cc \ |
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
40 fixedMatrix.cc fixedComplex.cc fixedCColVector.cc fixedCRowVector.cc \ |
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
41 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
|
42 fixedNDArray.cc fixedCNDArray.cc \ |
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
43 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
|
44 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
|
45 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
|
46 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
|
47 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
|
48 FIXEDLIBOBJECTS = fixed-int.o $(patsubst %.cc,%.o,$(FIXEDLIBSOURCES)) |
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
49 FIXEDLIBDEPENDS = fixed-int.d $(patsubst %.cc,%.d,$(FIXEDLIBSOURCES)) |
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
50 |
3065
c9748be75a06
Implement symbol export mechanism similar to octave, for MSVC
goffioul
parents:
2745
diff
changeset
|
51 FIXEDSOURCES = fixed.cc fixed-var.cc |
2383
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
52 FIXEDOBJECTS = $(patsubst %.cc,%.o,$(FIXEDSOURCES)) |
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
53 FIXEDDEPENDS = $(FIXEDLIBDEPENDS) $(patsubst %.cc,%.d,$(FIXEDSOURCES)) |
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
54 |
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
|
55 TARGETS = $(FIXEDLIBTARGET) $(FIXEDTARGET) |
2383
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
56 OBJECTS = $(FIXEDLIBOBJECTS) $(FIXEDOBJECTS) |
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
57 |
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
58 EXTRALIBS = -L./ -loctave_fixed |
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
59 |
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
60 # 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
|
61 # so that one of them will work. |
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
62 MY_SH_LDFLAGS = $(shell $(MKOCTFILE) -p SH_LDFLAGS) \ |
3065
c9748be75a06
Implement symbol export mechanism similar to octave, for MSVC
goffioul
parents:
2745
diff
changeset
|
63 -Wl,--out-implib=$(FIXEDIMPTARGET) |
2383
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
64 MY_DL_LDFLAGS = $(shell $(MKOCTFILE) -p DL_LDFLAGS) \ |
3065
c9748be75a06
Implement symbol export mechanism similar to octave, for MSVC
goffioul
parents:
2745
diff
changeset
|
65 -Wl,--out-implib=$(FIXEDIMPTARGET) |
2383
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
66 endif |
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
67 |
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
68 ifeq ($(MAKECMDGOALS),all) |
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
69 DEPENDS = $(FIXEDDEPENDS) |
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
70 endif |
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
71 ifeq ($(MAKECMDGOALS),) |
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
72 DEPENDS = $(FIXEDDEPENDS) |
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
73 endif |
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
74 |
3065
c9748be75a06
Implement symbol export mechanism similar to octave, for MSVC
goffioul
parents:
2745
diff
changeset
|
75 DELETES = $(OBJECTS) $(FIXEDDEPENDS) $(TARGETS) $(FIXEDIMPTARGET) \ |
2383
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
76 $(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
|
77 int/fixed.d-t FILES |
2383
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
78 |
2745
4b4fbe3a7c2b
Get rid of redundant build code. Fixes build issue on Solaris
adb014
parents:
2400
diff
changeset
|
79 DEFINES = -DOCTAVE_FORGE |
2383
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
80 MOFLAGS = |
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
81 |
2745
4b4fbe3a7c2b
Get rid of redundant build code. Fixes build issue on Solaris
adb014
parents:
2400
diff
changeset
|
82 .PHONY: all clean count |
2383
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
83 |
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
84 .SUFFIXES: |
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
85 |
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
86 .PRECIOUS: %.d %.o |
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
87 |
2745
4b4fbe3a7c2b
Get rid of redundant build code. Fixes build issue on Solaris
adb014
parents:
2400
diff
changeset
|
88 all : $(TARGETS) |
4b4fbe3a7c2b
Get rid of redundant build code. Fixes build issue on Solaris
adb014
parents:
2400
diff
changeset
|
89 @if [ -f FILES ]; then \ |
4b4fbe3a7c2b
Get rid of redundant build code. Fixes build issue on Solaris
adb014
parents:
2400
diff
changeset
|
90 $(RM) -f FILES; \ |
4b4fbe3a7c2b
Get rid of redundant build code. Fixes build issue on Solaris
adb014
parents:
2400
diff
changeset
|
91 fi; \ |
4b4fbe3a7c2b
Get rid of redundant build code. Fixes build issue on Solaris
adb014
parents:
2400
diff
changeset
|
92 touch FILES; \ |
4b4fbe3a7c2b
Get rid of redundant build code. Fixes build issue on Solaris
adb014
parents:
2400
diff
changeset
|
93 for _f in $(TARGETS); do \ |
4b4fbe3a7c2b
Get rid of redundant build code. Fixes build issue on Solaris
adb014
parents:
2400
diff
changeset
|
94 echo $$_f >> FILES; \ |
4b4fbe3a7c2b
Get rid of redundant build code. Fixes build issue on Solaris
adb014
parents:
2400
diff
changeset
|
95 done |
2383
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
96 |
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
97 ifndef OCTAVE_FORGE |
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
98 install : |
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
99 @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
|
100 else |
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
101 ifeq (1,$(OCT_INCLUDES_LIB)) |
2745
4b4fbe3a7c2b
Get rid of redundant build code. Fixes build issue on Solaris
adb014
parents:
2400
diff
changeset
|
102 install : |
2383
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
103 @$(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
|
104 |
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
|
105 $(FIXEDOBJECTS) $(FIXEDDEPENDS): DEFINES := $(DEFINES) $(DLLDEF) |
2383
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
106 else |
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; \ |
3065
c9748be75a06
Implement symbol export mechanism similar to octave, for MSVC
goffioul
parents:
2745
diff
changeset
|
109 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
|
110 echo "****** WARNING: $(FIXEDLIBTARGET) not correctly installed."; \ |
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
111 echo "****** To ensure correct operation $(FIXEDLIBTARGET) should"; \ |
3065
c9748be75a06
Implement symbol export mechanism similar to octave, for MSVC
goffioul
parents:
2745
diff
changeset
|
112 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
|
113 fi; \ |
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
114 $(INSTALL) $(FIXEDLIBTARGET) $(bindir); \ |
3065
c9748be75a06
Implement symbol export mechanism similar to octave, for MSVC
goffioul
parents:
2745
diff
changeset
|
115 if test ! -e $(libdir)/$(LIBPRE)octave.$(LIBIMPEXT) ; then \ |
c9748be75a06
Implement symbol export mechanism similar to octave, for MSVC
goffioul
parents:
2745
diff
changeset
|
116 echo "****** WARNING: $(FIXEDIMPTARGET) not correctly installed"; \ |
c9748be75a06
Implement symbol export mechanism similar to octave, for MSVC
goffioul
parents:
2745
diff
changeset
|
117 echo "****** To ensure correct operation $(FIXEDIMPTARGET)"; \ |
c9748be75a06
Implement symbol export mechanism similar to octave, for MSVC
goffioul
parents:
2745
diff
changeset
|
118 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
|
119 fi; \ |
3065
c9748be75a06
Implement symbol export mechanism similar to octave, for MSVC
goffioul
parents:
2745
diff
changeset
|
120 $(INSTALL) $(FIXEDIMPTARGET) $(libdir); |
c9748be75a06
Implement symbol export mechanism similar to octave, for MSVC
goffioul
parents:
2745
diff
changeset
|
121 |
c9748be75a06
Implement symbol export mechanism similar to octave, for MSVC
goffioul
parents:
2745
diff
changeset
|
122 $(FIXEDLIBOBJECTS) $(FIXEDLIBDEPENDS): DEFINES := $(DEFINES) $(DLLDEF) |
2383
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
123 |
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
124 $(FIXEDLIBTARGET): $(FIXEDLIBDEPENDS) $(FIXEDLIBOBJECTS) |
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
125 @echo "Linking $@"; \ |
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
126 $(RM) -f $@; \ |
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
127 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
|
128 endif |
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
129 endif |
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
130 |
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
131 $(FIXEDTARGET) : $(DEPENDS) $(FIXEDOBJECTS) |
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
132 @echo "Linking $@"; \ |
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
133 $(MKOCTFILE) $(MOFLAGS) $(FIXEDOBJECTS) $(EXTRALIBS) -o $@ |
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
134 |
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
135 $(FIXEDVERTARGET) : |
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
136 @echo "Creating $@"; $(RM) -f $@; \ |
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
137 echo "#define OCTAVEFIXEDVERSION \"$(OCTAVEFIXEDVERSION)\"" > $@ |
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
138 |
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
139 ifneq (,$(DEPENDS)) |
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
140 sinclude $(DEPENDS) |
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
141 endif |
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
142 |
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
143 fixed-int.d : int/fixed.cc |
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
144 @echo "Depending $<"; \ |
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
145 $(MKOCTFILE) $(MOFLAGS) $(DEFINES) -M int/fixed.cc; \ |
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
146 $(LN_S) $(patsubst %.cc,%.d,$<) $@ |
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-var.d : $(FIXEDVERTARGET) |
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
149 |
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
150 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
|
151 @echo "Compiling $@ from $<"; \ |
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
152 $(MKOCTFILE) $(MOFLAGS) $(DEFINES) -c $<; \ |
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
153 $(RM) -f $@ ; \ |
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
154 $(LN_S) $(patsubst %.cc,%.o,$<) $@ |
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
155 |
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
156 %.d: %.cc |
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
157 @echo "Depending $<"; \ |
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
158 $(MKOCTFILE) $(MOFLAGS) $(DEFINES) -M $< |
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
159 |
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
160 %.o:%.cc |
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
161 %.o:%.cc %.d |
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
162 @echo "Compiling $@"; \ |
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
163 $(MKOCTFILE) $(MOFLAGS) $(DEFINES) -c $< |
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
164 |
2745
4b4fbe3a7c2b
Get rid of redundant build code. Fixes build issue on Solaris
adb014
parents:
2400
diff
changeset
|
165 clean: |
2383
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
166 @echo "Cleaning..."; \ |
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
167 $(RM) -f $(DELETES) |
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
168 |
2745
4b4fbe3a7c2b
Get rid of redundant build code. Fixes build issue on Solaris
adb014
parents:
2400
diff
changeset
|
169 realclean: |
2383
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
170 @echo "Cleaning..."; \ |
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
171 $(RM) -f $(DELETES) |
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
172 |
2745
4b4fbe3a7c2b
Get rid of redundant build code. Fixes build issue on Solaris
adb014
parents:
2400
diff
changeset
|
173 dist: |
2383
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
174 |
2745
4b4fbe3a7c2b
Get rid of redundant build code. Fixes build issue on Solaris
adb014
parents:
2400
diff
changeset
|
175 count: |
2383
d1930f8af7ca
Changed the directory structure of fixed to match the package system
hauberg
parents:
diff
changeset
|
176 wc *{.cc,.h,.m} int/*.{cc,h} |