1
1
AUTOMAKE_OPTIONS = subdir-objects
2
2
ACLOCAL_AMFLAGS = $(ACLOCAL_FLAGS )
3
3
4
+ $(shell ./scripts/db.sh)
5
+
4
6
bin_PROGRAMS = ProTest
5
7
6
8
ProTest_SOURCES = main.cpp
9
+
7
10
if HAVE_QT
8
11
ProTest_CPPFLAGS = $(CXXFLAGS ) $(QT_CXXFLAGS ) -Wall -Wextra -std=c++11
9
12
ProTest_LDADD = libmainmenu.la libqt_cpp.la libdatabse.la libteacher.la libstudent.la
16
19
17
20
include_HEADERS = headers/tests_main_header.h headers/database.h headers/main_menu.h headers/sqlite3.h qt/dialog1.h \
18
21
qt/mainwindow.h qt/mainwindow_teach.h build-qt-Desktop-Debug/ui_dialog1.h build-qt-Desktop-Debug/ui_mainwindow.h \
19
- build-qt-Desktop-Debug/ui_mainwindow_teach.h libs/libcrypt/include/tomcrypt_prng.h libs/libcrypt/include/tomcrypt_pkcs.h \
20
- build-qt-Desktop-Debug/moc_predefs.h headers/teacher_menu.h headers/student_menu.h headers/config.h
22
+ build-qt-Desktop-Debug/ui_mainwindow_teach.h build-qt-Desktop-Debug/moc_predefs.h headers/teacher_menu.h \
23
+ headers/student_menu.h headers/config.h qt/dialog2.h qt/dialog3.h qt/mainwindow_stud.h headers/sha256.h \
24
+ build-qt-Desktop-Debug/ui_dialog2.h build-qt-Desktop-Debug/ui_dialog3.h build-qt-Desktop-Debug/ui_mainwindow_stud.h
21
25
22
26
if HAVE_QT
23
27
lib_LTLIBRARIES = libmainmenu.la libqt_cpp.la libdatabse.la libteacher.la libstudent.la
@@ -34,13 +38,16 @@ libmainmenu_la_CPPFLAGS = $(ProTest_CPPFLAGS)
34
38
if HAVE_QT
35
39
libqt_cpp_la_LDFLAGS = -version-info 0:0:0 $(QT_LIBS )
36
40
libqt_cpp_la_SOURCES = qt/dialog1.cpp qt/mainwindow.cpp qt/mainwindow_teach.cpp qt/qt_main.cpp build-qt-Desktop-Debug/moc_dialog1.cpp \
37
- build-qt-Desktop-Debug/moc_mainwindow.cpp build-qt-Desktop-Debug/moc_mainwindow_teach.cpp
41
+ build-qt-Desktop-Debug/moc_mainwindow.cpp build-qt-Desktop-Debug/moc_mainwindow_teach.cpp qt/dialog2.cpp qt/dialog3.cpp \
42
+ qt/mainwindow_stud.cpp build-qt-Desktop-Debug/moc_dialog2.cpp build-qt-Desktop-Debug/moc_dialog3.cpp \
43
+ build-qt-Desktop-Debug/moc_mainwindow_stud.cpp \
44
+ qt/dialog1.ui qt/dialog2.ui qt/dialog3.ui qt/mainwindow.ui qt/mainwindow_teach.ui qt/mainwindow_stud.ui
38
45
libqt_cpp_la_CPPFLAGS = $(ProTest_CPPFLAGS )
39
46
endif
40
47
41
48
# libdatabse.la
42
49
libdatabse_la_LDFLAGS = -version-info 0:0:0
43
- libdatabse_la_SOURCES = libs/db/database.cpp libs/db/sqlite3.c
50
+ libdatabse_la_SOURCES = libs/db/database.cpp libs/db/sqlite3.c libs/db/sha256.cpp
44
51
libdatabse_la_CPPFLAGS = $(ProTest_CPPFLAGS )
45
52
46
53
# libteacher.la
0 commit comments