diff options
Diffstat (limited to 'lumina-checkpass')
-rw-r--r-- | lumina-checkpass/lumina-checkpass.pro | 19 |
1 files changed, 6 insertions, 13 deletions
diff --git a/lumina-checkpass/lumina-checkpass.pro b/lumina-checkpass/lumina-checkpass.pro index 387246d0..ea9311d6 100644 --- a/lumina-checkpass/lumina-checkpass.pro +++ b/lumina-checkpass/lumina-checkpass.pro @@ -1,26 +1,19 @@ +include("$${PWD}/../OS-detect.pri") + TEMPLATE = app #Don't need any Qt - just a simple C program QT = CONFIG += console TARGET = lumina-checkpass -isEmpty(PREFIX) { - PREFIX = /usr/local -} -target.path = $$DESTDIR$$PREFIX/sbin - -isEmpty(LIBPREFIX) { - LIBPREFIX = $$PREFIX/lib -} +target.path = $$DESTDIR$${PREFIX}/sbin -LIBS += -L$$LIBPREFIX -lpam +LIBS += -lpam SOURCES += main.c -INCLUDEPATH += $$PREFIX/include - -perms.path = $$DESTDIR$$PREFIX/sbin -perms.extra = "chmod 4555 $$DESTDIR$$PREFIX/sbin/lumina-checkpass" +perms.path = $$DESTDIR$${PREFIX}/sbin +perms.extra = "chmod 4555 $$DESTDIR$${PREFIX}/sbin/lumina-checkpass" INSTALLS += target perms |