diff options
| author | Sebastiano Tronto <sebastiano@tronto.net> | 2025-04-04 16:00:37 +0200 |
|---|---|---|
| committer | Sebastiano Tronto <sebastiano@tronto.net> | 2025-04-04 16:00:37 +0200 |
| commit | 7ee1669522bdb6c2c6dae6a0ad7f9a9a60f87ff5 (patch) | |
| tree | e97658f411184a15a0d893f9bfda225a606f03a0 /Makefile | |
| download | minimal-qt-7ee1669522bdb6c2c6dae6a0ad7f9a9a60f87ff5.tar.gz minimal-qt-7ee1669522bdb6c2c6dae6a0ad7f9a9a60f87ff5.zip | |
Initial commit
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 26 |
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 @@ | |||
| 1 | QTINCPATH = /usr/include/qt6 | ||
| 2 | QTTOOLS = /usr/lib64/qt6/libexec | ||
| 3 | |||
| 4 | CC = g++ | ||
| 5 | MOC = ${QTTOOLS}/moc | ||
| 6 | UIC = ${QTTOOLS}/uic | ||
| 7 | INCLUDE = -I ${QTINCPATH} \ | ||
| 8 | -I ${QTINCPATH}/QtWidgets | ||
| 9 | QTLIB = -lQt6Widgets \ | ||
| 10 | -lQt6Core \ | ||
| 11 | -lQt6Gui | ||
| 12 | SRC = main.cpp mainwindow.cpp moc_mainwindow.cpp | ||
| 13 | |||
| 14 | all: moc ui | ||
| 15 | ${CC} ${SRC} ${INCLUDE} ${QTLIB} -o run | ||
| 16 | |||
| 17 | moc: | ||
| 18 | ${MOC} mainwindow.h > moc_mainwindow.cpp | ||
| 19 | |||
| 20 | ui: | ||
| 21 | ${UIC} mainwindow.ui > ui_mainwindow.h | ||
| 22 | |||
| 23 | clean: | ||
| 24 | rm moc_* ui_* run | ||
| 25 | |||
| 26 | .PHONY: all moc ui clean | ||
