aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorSebastiano Tronto <sebastiano@tronto.net>2025-04-04 16:00:37 +0200
committerSebastiano Tronto <sebastiano@tronto.net>2025-04-04 16:00:37 +0200
commit7ee1669522bdb6c2c6dae6a0ad7f9a9a60f87ff5 (patch)
treee97658f411184a15a0d893f9bfda225a606f03a0 /Makefile
downloadminimal-qt-7ee1669522bdb6c2c6dae6a0ad7f9a9a60f87ff5.tar.gz
minimal-qt-7ee1669522bdb6c2c6dae6a0ad7f9a9a60f87ff5.zip
Initial commit
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile26
1 files changed, 26 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..4ba3ce9
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,26 @@
1QTINCPATH = /usr/include/qt6
2QTTOOLS = /usr/lib64/qt6/libexec
3
4CC = g++
5MOC = ${QTTOOLS}/moc
6UIC = ${QTTOOLS}/uic
7INCLUDE = -I ${QTINCPATH} \
8 -I ${QTINCPATH}/QtWidgets
9QTLIB = -lQt6Widgets \
10 -lQt6Core \
11 -lQt6Gui
12SRC = main.cpp mainwindow.cpp moc_mainwindow.cpp
13
14all: moc ui
15 ${CC} ${SRC} ${INCLUDE} ${QTLIB} -o run
16
17moc:
18 ${MOC} mainwindow.h > moc_mainwindow.cpp
19
20ui:
21 ${UIC} mainwindow.ui > ui_mainwindow.h
22
23clean:
24 rm moc_* ui_* run
25
26.PHONY: all moc ui clean

Generated with cgit - Back to sebastiano.tronto.net