Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

[53b1fd]: src / Makefile Maximize Restore History

Download this file

Makefile    118 lines (92 with data), 2.8 kB

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
sinclude Makeconf
FIXEDVERTARGET = fixedversion.h
FIXEDTARGET = fixed.oct
DLLDEF =
ADD_FLAGS =
ifneq (,$(findstring cygwin,$(canonical_host_type)))
DLLDEF = -DFIXED_DLL
ADD_FLAGS = -Wl,--out-implib=libfixed.a
endif
ifneq (,$(findstring mingw,$(canonical_host_type)))
DLLDEF = -DFIXED_DLL
ADD_FLAGS = -Wl,--out-implib=libfixed.a
endif
ifneq (,$(findstring msdosmsvc,$(canonical_host_type)))
DLLDEF = -DFIXED_DLL
endif
FIXEDSOURCES = fixedColVector.cc fixedRowVector.cc \
fixedMatrix.cc fixedComplex.cc fixedCColVector.cc fixedCRowVector.cc \
fixedCMatrix.cc Array-f.cc fixed-conv.cc ov-fixed.cc ov-fixed-mat.cc \
fixedNDArray.cc fixedCNDArray.cc \
ov-fixed-complex.cc ov-fixed-cx-mat.cc \
op-fs-fs.cc op-fs-fm.cc op-fm-fs.cc op-fm-fm.cc \
op-fs-fcs.cc op-fs-fcm.cc op-fm-fcs.cc op-fm-fcm.cc \
op-fcs-fs.cc op-fcs-fm.cc op-fcm-fs.cc op-fcm-fm.cc \
op-fcs-fcs.cc op-fcs-fcm.cc op-fcm-fcs.cc op-fcm-fcm.cc \
fixed-var.cc fixed.cc
FIXEDOBJECTS = int/fixed.o $(patsubst %.cc,%.o,$(FIXEDSOURCES))
FIXEDDEPENDS = int/fixed.d $(patsubst %.cc,%.d,$(FIXEDSOURCES))
TARGETS = $(FIXEDTARGET)
OBJECTS = $(FIXEDOBJECTS)
ifeq ($(MAKECMDGOALS),all)
DEPENDS = $(FIXEDDEPENDS)
endif
ifeq ($(MAKECMDGOALS),)
DEPENDS = $(FIXEDDEPENDS)
endif
DELETES = $(OBJECTS) $(FIXEDDEPENDS) $(TARGETS) $(FIXEDVERTARGET) \
core octave-core *~ *.d-t int/fixed.o int/fixed.d \
int/fixed.d-t FILES
DEFINES = -DOCTAVE_FORGE $(DLLDEF)
MOFLAGS =
.PHONY: all clean count
.SUFFIXES:
.PRECIOUS: %.d %.o
all : $(TARGETS)
@if [ -f FILES ]; then \
$(RM) -f FILES; \
fi; \
touch FILES; \
for _f in $(TARGETS); do \
echo $$_f >> FILES; \
done
ifndef OCTAVE_FORGE
install :
@echo "Where exactly do you want me to install to!!!"
else
install :
@$(INSTALL) -d $(DESTDIR)$(MPATH)/fixed
$(FIXEDOBJECTS) $(FIXEDDEPENDS): DEFINES := $(DEFINES) $(DLLDEF)
endif
$(FIXEDTARGET) : $(DEPENDS) $(FIXEDOBJECTS)
@echo "Linking $@";
$(MKOCTFILE) $(ADD_FLAGS) $(MOFLAGS) $(FIXEDOBJECTS) $(EXTRALIBS) -o $@
$(FIXEDVERTARGET) :
@echo "Creating $@"; $(RM) -f $@;
echo "#define OCTAVEFIXEDVERSION \"$(OCTAVEFIXEDVERSION)\"" > $@
ifneq (,$(DEPENDS))
sinclude $(DEPENDS)
endif
int/fixed.d : int/fixed.cc
@echo "Depending $<";
$(MKOCTFILE) $(MOFLAGS) $(DEFINES) -M int/fixed.cc;
fixed-var.d : $(FIXEDVERTARGET)
int/fixed.o : int/fixed.cc int/fixed.d
@echo "Compiling $@ from $<"
$(MKOCTFILE) $(MOFLAGS) $(DEFINES) -c -o $@ $<
%.d: %.cc
@echo "Depending $<"
$(MKOCTFILE) $(MOFLAGS) $(DEFINES) -M $<
%.o:%.cc
%.o:%.cc %.d
@echo "Compiling $@"
$(MKOCTFILE) $(MOFLAGS) $(DEFINES) -c $<
clean:
@echo "Cleaning..."
$(RM) -f $(DELETES)
realclean:
@echo "Cleaning..."
$(RM) -f $(DELETES) Makeconf config.log config.status
dist:
count:
wc *{.cc,.h,.m} int/*.{cc,h}