Created default targets. Prepared automake for moc compiler (TODO).
authorRafał Długołęcki <kontakt@dlugolecki.net.pl>
Tue, 2 Jul 2013 08:05:21 +0000 (10:05 +0200)
committerRafał Długołęcki <kontakt@dlugolecki.net.pl>
Tue, 2 Jul 2013 08:05:21 +0000 (10:05 +0200)
Makefile.am

index 1433128f88c4d4a78a21d4e114ac5af7fc5ebfc9..f5f5687e371579789a5afc6e144bc4c6457c3059 100644 (file)
@@ -1,17 +1,75 @@
 AUTOMAKE_OPTIONS = gnu subdir-objects
 ACLOCAL_AMFLAGS = ${ACLOCAL_FLAGS}
 
-bin_PROGRAMS = vlp
 
-vlp_SOURCES = dummy.c
+###   moc compiler directory
+MOCDIR=/usr/bin
+###   moc compiler
+MOC=$(MOCDIR)/moc
+###   Includes for QT library
+QINC=/usr/include/qt3
+###   QT library directory
+QLIB=/usr/lib/
 
-vlp_CPPFLAGS = \
-  $(vlp_CFLAGS) \
-  -Wall -pedantic -Wextra \
-  -I/usr/include/qt3
+AM_CFLAGS= -Wall -pedantic -Wextra -fPIC -fno-strength-reduce -I$(QINC) -I/usr/X11R6/include
+AM_LDFLAGS= -lqt-mt -L$(QLIB)
 
-vlp_LDADD = \
-  $(vlp_LIBS) \
-  -L/usr/lib
+%.moc: %.cpp
+       $(MOC) $< -o $@
+
+bin_PROGRAMS = \
+  graph/loggraph \
+  net/lognet \
+  kernel/logker \
+  int/logint \
+  edit/logedit \
+  lgconfig/lgconfig \
+  preproc/logcomp \
+  help/loghelp
+
+
+graph_loggraph_SOURCES = graph/loggraph.cpp
+graph_loggraph_CPPFLAGS = $(graph_loggraph_CFLAGS)
+graph_loggraph_OBJECTS : graph/loggraph.moc
+graph_loggraph_LDADD = $(graph_loggraph_LIBS)
+
+net_lognet_SOURCES = net/lognet.cpp
+net_lognet_CPPFLAGS = $(net_lognet_CFLAGS)
+net_lognet_OBJECTS : net/lognet.moc
+net_lognet_LDADD = $(net_lognet_LIBS)
+
+kernel_logker_SOURCES = kernel/kernel.cpp
+kernel_logker_CPPFLAGS = $(kernel_logker_CFLAGS)
+kernel_logker_OBJECTS : kernel/kernel.moc
+kernel_logker_LDADD = $(kernel_logker_LIBS)
+
+#int_logint_SOURCES = kernel/kernel.moc
+edit_logedit_SOURCES = edit/editor.cpp
+edit_logedit_CPPFLAGS = $(edit_logedit_CFLAGS)
+edit_logedit_OBJECTS : edit/editor.moc
+edit_logedit_LDADD = $(edit_logedit_LIBS)
+
+lgconfig_lgconfig_SOURCES = lgconfig/lgconfig.cpp
+lgconfig_lgconfig_CPPFLAGS = $(lgconfig_lgconfig_CFLAGS)
+lgconfig_lgconfig_OBJECTS : lgconfig/lgconfig.moc
+lgconfig_lgconfig_LDADD = $(lgconfig_lgconfig_LIBS)
+
+preproc_logcomp_SOURCES = preproc/logcomp.cpp
+preproc_logcomp_CPPFLAGS = $(preproc_logcomp_CFLAGS)
+preproc_logcomp_OBJECTS : preproc/logcomp.moc
+preproc_logcomp_LDADD = $(preproc_logcomp_LIBS)
+
+
+help_loghelp_SOURCES = help/help.cpp
+help_loghelp_CPPFLAGS = $(help_loghelp_CFLAGS)
+help_loghelp_OBJECTS : help/help.moc
+help_loghelp_LDADD = $(help_loghelp_LIBS)
+
+
+CLEANFILES = \
+  %.moc \
+       %.o \
+       %.bak \
+  %~ 
 
 dist_noinst_SCRIPTS = autogen.sh