From f0f42c844a77784da20fff9d38167da02cafa9a2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Rafa=C5=82=20D=C5=82ugo=C5=82=C4=99cki?= Date: Tue, 2 Jul 2013 10:05:21 +0200 Subject: [PATCH] Created default targets. Prepared automake for moc compiler (TODO). --- Makefile.am | 76 ++++++++++++++++++++++++++++++++++++++++++++++------- 1 file changed, 67 insertions(+), 9 deletions(-) diff --git a/Makefile.am b/Makefile.am index 1433128..f5f5687 100644 --- a/Makefile.am +++ b/Makefile.am @@ -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 -- 2.30.2