Skip to content

Instantly share code, notes, and snippets.

View habaneropep2019's full-sized avatar

Alec Bloss habaneropep2019

  • Informed Technology Solutions, LLC
  • United States
  • 23:25 (UTC -05:00)
View GitHub Profile
@mishurov
mishurov / qt.mak
Last active June 30, 2025 22:06
Makefile to build QT projects (Linux) without qmake
CC=g++
MOC=moc-qt4
CFLAGS=-Wall
SOURCES=hello.cc hello_cls.cc
MOC_HEADERS=hello_cls.h
EXECUTABLE=hello
INCDIRS=-I/usr/include/qt4 -I/usr/include/qt4/QtGui -I/usr/include/qt4/QtCore
LIBS=-lQtCore -lQtGui
# Change postfixes
MOC_SOURCES=$(MOC_HEADERS:.h=.moc.cc)