aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: 4ba3ce9ab874c44c9262b4f8a39675d9528c92c0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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

Generated with cgit - Back to sebastiano.tronto.net