annotate main/fixed/src/Makefile @ 4418:5c46c15f6053 octave-forge

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