minimal-qt

A minimal QT application, without the nonsense
git clone https://git.tronto.net/minimal-qt
Download | Log | Files | Refs | README

Makefile (487B)


      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