View Single Post
Marcus's Avatar
Posts: 173 | Thanked: 72 times | Joined on Mar 2010 @ Denmark
#1
Hey.

I am trying to port this little SDL application, but I'm kind of clueless regarding the prog.pro file, when packaging the application.
I have created a "simple" template using MADDE, but how do I tell make that it needs the SDL libraries?

Code:
TARGET      = fixedratepigs
HEADERS     +=  engine.h dirty.h
SOURCES     +=  pig.c engine.c dirty.c
FORMS       += 
LEXSOURCES  += #LEXS#
YACCSOURCES += #YACCS#

INCLUDEPATH +=
LIBS        +=
DEFINES     +=

# All generated files goes same directory
OBJECTS_DIR = build
MOC_DIR     = build
UI_DIR      = build

DESTDIR     = build
TEMPLATE    = app
DEPENDPATH  +=
VPATH       += src uis
CONFIG      -= qt
CONFIG      += debug
#QTMODULES#

INSTALLS    += target
target.path  = /usr/bin/

#
# Targets for debian source and binary package creation
#
debian-src.commands = dpkg-buildpackage -S -r -us -uc -d
debian-bin.commands = dpkg-buildpackage -b -r -uc -d
debian-all.depends = debian-src debian-bin

#
# Clean all but Makefile
#
compiler_clean.commands = -$(DEL_FILE) $(TARGET)

QMAKE_EXTRA_TARGETS += debian-all debian-src debian-bin compiler_clean