summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Baumann <abaumann@yahoo.com>2010-04-28 21:54:01 +0200
committerAndreas Baumann <abaumann@yahoo.com>2010-04-28 21:54:01 +0200
commit8332a3ab755597610b2135278f39656c4c29c8a0 (patch)
treee25bd05207daa56983b7181b01faf805b29e2565
parente00b3dd652979f5a7700d0a124832ac913fa9ed4 (diff)
downloadtvisiontest-8332a3ab755597610b2135278f39656c4c29c8a0.tar.gz
tvisiontest-8332a3ab755597610b2135278f39656c4c29c8a0.tar.bz2
added first working example
-rw-r--r--src/GNUmakefile51
-rw-r--r--src/test1.cpp12
2 files changed, 19 insertions, 44 deletions
diff --git a/src/GNUmakefile b/src/GNUmakefile
index 55d0e3b..13c8582 100644
--- a/src/GNUmakefile
+++ b/src/GNUmakefile
@@ -2,67 +2,30 @@ TOPDIR = ..
SUBDIRS =
-INCLUDE_CPPFLAGS = \
- -DBOOST_LOG_USE_NATIVE_SYSLOG
+INCLUDE_CPPFLAGS =
INCLUDE_LDFLAGS = \
- -L$(TOPDIR)/libs/boost/log
+ -L$(TOPDIR)/tvision/makes
-INCLUDE_DIRS = -I. \
- -I$(TOPDIR)/include -I$(TOPDIR)
-
--include $(TOPDIR)/makefiles/gmake/platform.mk
+INCLUDE_DIRS = \
+ -I. -I$(TOPDIR)/tvision/include
INCLUDE_LIBS = \
- -lboost_thread$(BOOST_LIBRARY_TAG) -lboost_system \
- -lboost_program_options \
- -lboost_filesystem \
- -lboost_log -lboost_log_setup \
- -lssl
+ -lrhtv
CPP_BINS = \
- smerpd$(EXE)
-
-STATIC_LIB = \
-
-STATIC_LIB_OBJS = \
-
-C_PORT_OBJS = \
OBJS = \
- $(C_PORT_OBJS) \
- $(STATIC_LIB_OBJS) \
- version.o \
- appInstance.o \
- commandLine.o \
- logLevel.o \
- logSyslogFacility.o \
- logger.o \
- configFile.o \
- appConfig.o \
- request.o \
- reply.o \
- server.o \
- connection.o \
- getPassword.o \
- requestHandler.o \
- posixMain.o
CPP_BINS = \
- smerpd$(EXE)
+ test1$(EXE)
-include $(TOPDIR)/makefiles/gmake/sub.mk
-local_all: $(CPP_BINS)
-
-$(STATIC_LIBS): $(STATIC_LIBS_OBJS)
- ar rcs $(STATIC_LIBS) $(STATIC_LIB_OBJS)
+local_all:
local_clean:
- @rm -f $(STATIC_LIBS)
local_distclean:
local_install:
- $(INSTALL) -d -m 755 $(bindir)
- $(INSTALL) -m 644 $(CPP_BINS) $(bindir)
diff --git a/src/test1.cpp b/src/test1.cpp
new file mode 100644
index 0000000..2aec5c7
--- /dev/null
+++ b/src/test1.cpp
@@ -0,0 +1,12 @@
+#define Uses_TApplication
+#define Uses_TEditorApp
+#include <tv.h>
+
+int main( ) {
+ TEditorApp *app = new TEditorApp( );
+ if( app ) {
+ app->run( );
+ delete app;
+ }
+ return 0;
+}