annotate main/fixed/src/Makefile @ 3065:c9748be75a06 octave-forge

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