Commit 3cb5015f authored by thomas.forbriger's avatar thomas.forbriger Committed by thomas.forbriger
Browse files

test mex compiler

This is a legacy commit from before 2015-03-01.
It may be incomplete as well as inconsistent.
See COPYING.legacy and README.history for details.


SVN Path:     http://gpitrsvn.gpi.uni-karlsruhe.de/repos/TFSoftware/trunk
SVN Revision: 3042
SVN UUID:     67feda4a-a26e-11df-9d6e-31afc202ad0c
parent 6f3360cd
This is a legacy version of the repository. It may be incomplete as well as
inconsistent. See README.history for details. For the old stock of the
repository copyright and licence conditions apply as specified for versions
commited after 2015-03-01. Use recent versions as a base for new development.
The legacy version is only stored to keep a record of history.
# this is <Makefile>
# ----------------------------------------------------------------------------
# $Id: Makefile,v 1.1 2010-04-27 19:09:52 tforb Exp $
#
# Copyright (c) 2010 by Thomas Forbriger (BFO Schiltach)
#
# compile mex files
#
# REVISIONS and CHANGES
# 27/04/2010 V1.0 Thomas Forbriger
#
# ============================================================================
#
all:
flist: Makefile $(wildcard *.cc)
echo $^ | tr ' ' '\n' | sort > $@
.PHONY: edit
edit: flist; vim $<
.PHONY: clean
clean: ;
-find . -name \*.bak | xargs --no-run-if-empty /bin/rm -v
-/bin/rm -vf flist
mextest.mexa64: mextest.cc
mex $< -cxx -output $@ -L$(LOCLIBDIR) -I$(LOCINCLUDEDIR) -ltime++
# ----- END OF Makefile -----
/*! \file mextest.cc
* \brief test mex compiler
*
* ----------------------------------------------------------------------------
*
* $Id: mextest.cc,v 1.1 2010-04-27 19:09:52 tforb Exp $
* \author Thomas Forbriger
* \date 27/04/2010
*
* test mex compiler
*
* Copyright (c) 2010 by Thomas Forbriger (BFO Schiltach)
*
* REVISIONS and CHANGES
* - 27/04/2010 V1.0 Thomas Forbriger
*
* ============================================================================
*/
#define MEXTEST_VERSION \
"MEXTEST V1.0 test mex compiler"
#define MEXTEST_CVSID \
"$Id: mextest.cc,v 1.1 2010-04-27 19:09:52 tforb Exp $"
#include "mex.h"
#include <libtime++.h>
void mexFunction(int nlhs, mxArray *plhs[],
int nrhs, const mxArray *prhs[]) {
mexPrintf("Hello, world!\n");
libtime::TAbsoluteTime date=libtime::now();
mexPrintf("Year: %d Day of year: %d\n", date.year(), date.doy());
}
/* ----- END OF mextest.cc ----- */
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment