annotate main/fixed/src/Makefile @ 4631:1b0a2d6110ca octave-forge

attempt at build fix for fixed package
author adb014
date Thu, 27 Mar 2008 11:42:41 +0000
parents c372fffc9fec
children 9de4481b4710
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 DLLDEF =
4418
5c46c15f6053 MinGW build fix (For Tatsuro Matsuoka)
adb014
parents: 4309
diff changeset
7 ifneq (,$(findstring cygwin,$(canonical_host_type)))
5c46c15f6053 MinGW build fix (For Tatsuro Matsuoka)
adb014
parents: 4309
diff changeset
8 DLLDEF = -DFIXED_DLL
5c46c15f6053 MinGW build fix (For Tatsuro Matsuoka)
adb014
parents: 4309
diff changeset
9 endif
5c46c15f6053 MinGW build fix (For Tatsuro Matsuoka)
adb014
parents: 4309
diff changeset
10 ifneq (,$(findstring mingw,$(canonical_host_type)))
5c46c15f6053 MinGW build fix (For Tatsuro Matsuoka)
adb014
parents: 4309
diff changeset
11 DLLDEF = -DFIXED_DLL
5c46c15f6053 MinGW build fix (For Tatsuro Matsuoka)
adb014
parents: 4309
diff changeset
12 endif
5c46c15f6053 MinGW build fix (For Tatsuro Matsuoka)
adb014
parents: 4309
diff changeset
13 ifneq (,$(findstring msdosmsvc,$(canonical_host_type)))
5c46c15f6053 MinGW build fix (For Tatsuro Matsuoka)
adb014
parents: 4309
diff changeset
14 DLLDEF = -DFIXED_DLL
2383
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
15 endif
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
16
4631
1b0a2d6110ca attempt at build fix for fixed package
adb014
parents: 4527
diff changeset
17 FIXEDSOURCES = fixedColVector.cc fixedRowVector.cc \
2383
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
18 fixedMatrix.cc fixedComplex.cc fixedCColVector.cc fixedCRowVector.cc \
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
19 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
20 fixedNDArray.cc fixedCNDArray.cc \
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
21 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
22 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
23 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
24 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
25 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
26 fixed-var.cc fixed.cc
4631
1b0a2d6110ca attempt at build fix for fixed package
adb014
parents: 4527
diff changeset
27 FIXEDOBJECTS = fixed-int.o $(patsubst %.cc,%.o,$(FIXEDSOURCES))
1b0a2d6110ca attempt at build fix for fixed package
adb014
parents: 4527
diff changeset
28 FIXEDDEPENDS = fixed-int.d $(patsubst %.cc,%.d,$(FIXEDSOURCES))
2383
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
29
4631
1b0a2d6110ca attempt at build fix for fixed package
adb014
parents: 4527
diff changeset
30 TARGETS = $(FIXEDTARGET)
1b0a2d6110ca attempt at build fix for fixed package
adb014
parents: 4527
diff changeset
31 OBJECTS = $(FIXEDOBJECTS)
2383
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 ($(MAKECMDGOALS),all)
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
34 DEPENDS = $(FIXEDDEPENDS)
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
35 endif
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
36 ifeq ($(MAKECMDGOALS),)
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
37 DEPENDS = $(FIXEDDEPENDS)
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
38 endif
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
39
4631
1b0a2d6110ca attempt at build fix for fixed package
adb014
parents: 4527
diff changeset
40 DELETES = $(OBJECTS) $(FIXEDDEPENDS) $(TARGETS) $(FIXEDVERTARGET) \
1b0a2d6110ca attempt at build fix for fixed package
adb014
parents: 4527
diff changeset
41 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
42 int/fixed.d-t FILES
2383
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
43
4631
1b0a2d6110ca attempt at build fix for fixed package
adb014
parents: 4527
diff changeset
44 DEFINES = -DOCTAVE_FORGE $(DLLDEF)
2383
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
45 MOFLAGS =
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
46
2745
4b4fbe3a7c2b Get rid of redundant build code. Fixes build issue on Solaris
adb014
parents: 2400
diff changeset
47 .PHONY: all clean count
2383
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
48
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
49 .SUFFIXES:
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
50
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
51 .PRECIOUS: %.d %.o
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
52
2745
4b4fbe3a7c2b Get rid of redundant build code. Fixes build issue on Solaris
adb014
parents: 2400
diff changeset
53 all : $(TARGETS)
4b4fbe3a7c2b Get rid of redundant build code. Fixes build issue on Solaris
adb014
parents: 2400
diff changeset
54 @if [ -f FILES ]; then \
4b4fbe3a7c2b Get rid of redundant build code. Fixes build issue on Solaris
adb014
parents: 2400
diff changeset
55 $(RM) -f FILES; \
4b4fbe3a7c2b Get rid of redundant build code. Fixes build issue on Solaris
adb014
parents: 2400
diff changeset
56 fi; \
4b4fbe3a7c2b Get rid of redundant build code. Fixes build issue on Solaris
adb014
parents: 2400
diff changeset
57 touch FILES; \
4b4fbe3a7c2b Get rid of redundant build code. Fixes build issue on Solaris
adb014
parents: 2400
diff changeset
58 for _f in $(TARGETS); do \
4b4fbe3a7c2b Get rid of redundant build code. Fixes build issue on Solaris
adb014
parents: 2400
diff changeset
59 echo $$_f >> FILES; \
4b4fbe3a7c2b Get rid of redundant build code. Fixes build issue on Solaris
adb014
parents: 2400
diff changeset
60 done
2383
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
61
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
62 ifndef OCTAVE_FORGE
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
63 install :
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
64 @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
65 else
2745
4b4fbe3a7c2b Get rid of redundant build code. Fixes build issue on Solaris
adb014
parents: 2400
diff changeset
66 install :
2383
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
67 @$(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
68
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
69 $(FIXEDOBJECTS) $(FIXEDDEPENDS): DEFINES := $(DEFINES) $(DLLDEF)
2383
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
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
72 $(FIXEDTARGET) : $(DEPENDS) $(FIXEDOBJECTS)
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
73 @echo "Linking $@"; \
4418
5c46c15f6053 MinGW build fix (For Tatsuro Matsuoka)
adb014
parents: 4309
diff changeset
74 $(MKOCTFILE) $(ADD_FLAGS) $(MOFLAGS) $(FIXEDOBJECTS) $(EXTRALIBS) -o $@
2383
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
75
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
76 $(FIXEDVERTARGET) :
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
77 @echo "Creating $@"; $(RM) -f $@; \
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
78 echo "#define OCTAVEFIXEDVERSION \"$(OCTAVEFIXEDVERSION)\"" > $@
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
79
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
80 ifneq (,$(DEPENDS))
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
81 sinclude $(DEPENDS)
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
82 endif
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 fixed-int.d : int/fixed.cc
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
85 @echo "Depending $<"; \
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
86 $(MKOCTFILE) $(MOFLAGS) $(DEFINES) -M int/fixed.cc; \
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
87 $(LN_S) $(patsubst %.cc,%.d,$<) $@
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 fixed-var.d : $(FIXEDVERTARGET)
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 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
92 @echo "Compiling $@ from $<"; \
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
93 $(MKOCTFILE) $(MOFLAGS) $(DEFINES) -c $<; \
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
94 $(RM) -f $@ ; \
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
95 $(LN_S) $(patsubst %.cc,%.o,$<) $@
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 %.d: %.cc
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
98 @echo "Depending $<"; \
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
99 $(MKOCTFILE) $(MOFLAGS) $(DEFINES) -M $<
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 %.o:%.cc
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
102 %.o:%.cc %.d
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
103 @echo "Compiling $@"; \
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
104 $(MKOCTFILE) $(MOFLAGS) $(DEFINES) -c $<
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
105
2745
4b4fbe3a7c2b Get rid of redundant build code. Fixes build issue on Solaris
adb014
parents: 2400
diff changeset
106 clean:
2383
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
107 @echo "Cleaning..."; \
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
108 $(RM) -f $(DELETES)
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
109
2745
4b4fbe3a7c2b Get rid of redundant build code. Fixes build issue on Solaris
adb014
parents: 2400
diff changeset
110 realclean:
2383
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
111 @echo "Cleaning..."; \
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
112 $(RM) -f $(DELETES)
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
113
2745
4b4fbe3a7c2b Get rid of redundant build code. Fixes build issue on Solaris
adb014
parents: 2400
diff changeset
114 dist:
2383
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
115
2745
4b4fbe3a7c2b Get rid of redundant build code. Fixes build issue on Solaris
adb014
parents: 2400
diff changeset
116 count:
2383
d1930f8af7ca Changed the directory structure of fixed to match the package system
hauberg
parents:
diff changeset
117 wc *{.cc,.h,.m} int/*.{cc,h}