forked from l0b0/xautolock
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Imakefile
69 lines (55 loc) · 1.99 KB
/
Imakefile
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
/************************************************************************/
/* Imakefile for xautolock. Edit to your likings. */
/************************************************************************/
/*
* Tell it what extensions to use.
*/
#ifndef HPArchitecture
#define HasScreenSaver 1 /* By default assume to have MIT ScreenSaver, */
#else
#define HasScreenSaver 0 /* except on HP machines (sigh...) */
#endif
#define HasXidle 0 /* By default assume not to have Xidle. */
/*
* Uncomment the following if you want xautolock to read your
* .Xdefaults file as a last resort for getting resource info.
* This is not a good idea. For the reason why, see the comment
* about it in src/options.c. This is not implemented on VMS.
*/
/*#define ReadXdefaultsFile */
/************************************************************************/
/* No modifications needed below this line if you're not using Xidle. */
/************************************************************************/
#if HasScreenSaver
HASSAVER = -DHasScreenSaver
SAVERLIB = $(XSSLIB)
DEPSAVERLIB = $(DEPXSSLIB)
#endif
#if HasXidle
HASXIDLE = -DHasXidle
/*
* Since Xidle is rather rare, I don't know of a generic way to
* refer to the required libraries and include files. Users of
* xidle will thus have to tweak things by hand here.
*/
#endif
#if HasVFork
VFORK = -DHasVFork
#endif
#ifdef OSF
EXTRA_DEFINES = -DSYSV /* Solves wait() problems on DEC OSF/1. */
#endif
SRCS = src/diy.c src/options.c src/message.c src/state.c \
src/engine.c src/xautolock.c
OBJS = $(SRCS:.c=.o)
INCLUDES = -Iinclude
LOCAL_LIBRARIES = $(SAVERLIB) $(XLIB)
DEPLIBS = $(DEPSAVERLIB) $(DEPXLIB)
DEFINES = $(PROTOTYPES) $(VOIDSIGNAL) $(VFORK) \
$(HASXIDLE) $(HASSAVER)
.c.o:
$(CC) $(CFLAGS) -c $*.c -o $*.o
ComplexProgramTarget(xautolock)
clean::
$(RM) $(OBJS) Makefile
distclean:: clean