aboutsummaryrefslogtreecommitdiff
path: root/x11/xtrlock/files/Makefile
blob: 26334d7930973a5dcfc56d10a62ea23bac2676e2 (plain) (blame)
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
27
28
29
30
31
32
33
34
35
36
37
38
39
# Makefile for xtrlock - X Transparent Lock
# This Makefile provided for those of you who lack a functioning xmkmf.
#
# Copyright (C)1993,1994 Ian Jackson
#
# This is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.
#
# This is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# $FreeBSD$
#

LDLIBS=-lX11 -lcrypt
CC?=gcc
CFLAGS+=-I${LOCALBASE}/include -L${LOCALBASE}/lib
INSTALL=install -c
INSTALL_PROGRAM = ${INSTALL}
INSTPGMFLAGS = -s -o root -m4111
OBJS=xtrlock.o

xtrlock:	xtrlock.o
		${CC} ${CFLAGS} ${LDLIBS} -o xtrlock ${OBJS}

xtrlock.o:	xtrlock.c lock.bitmap mask.bitmap patchlevel.h
	        ${CC} -c ${CFLAGS} xtrlock.c

install:	xtrlock install.man
		$(INSTALL_PROGRAM) $(INSTPGMFLAGS) xtrlock ${PREFIX}/bin

install.man:
		$(INSTALL) -m 644 xtrlock.man ${PREFIX}/man/man1/xtrlock.1

all:            xtrlock