From: Rafał Długołęcki Date: Tue, 2 Jul 2013 08:05:21 +0000 (+0200) Subject: Created default targets. Prepared automake for moc compiler (TODO). X-Git-Tag: 3.1~78 X-Git-Url: https://git.dlugolecki.net.pl/?a=commitdiff_plain;h=f0f42c844a77784da20fff9d38167da02cafa9a2;p=vlp.git Created default targets. Prepared automake for moc compiler (TODO). --- 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