From 7ee1669522bdb6c2c6dae6a0ad7f9a9a60f87ff5 Mon Sep 17 00:00:00 2001 From: Sebastiano Tronto Date: Fri, 4 Apr 2025 16:00:37 +0200 Subject: Initial commit --- Makefile | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..4ba3ce9 --- /dev/null +++ b/Makefile @@ -0,0 +1,26 @@ +QTINCPATH = /usr/include/qt6 +QTTOOLS = /usr/lib64/qt6/libexec + +CC = g++ +MOC = ${QTTOOLS}/moc +UIC = ${QTTOOLS}/uic +INCLUDE = -I ${QTINCPATH} \ + -I ${QTINCPATH}/QtWidgets +QTLIB = -lQt6Widgets \ + -lQt6Core \ + -lQt6Gui +SRC = main.cpp mainwindow.cpp moc_mainwindow.cpp + +all: moc ui + ${CC} ${SRC} ${INCLUDE} ${QTLIB} -o run + +moc: + ${MOC} mainwindow.h > moc_mainwindow.cpp + +ui: + ${UIC} mainwindow.ui > ui_mainwindow.h + +clean: + rm moc_* ui_* run + +.PHONY: all moc ui clean -- cgit v1.3