annotate main/fixed/src/Makefile @ 4527:c372fffc9fec octave-forge

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