File: Imakefile

package info (click to toggle)
xautolock 1:2.2-5.1
  • links: PTS
  • area: main
  • in suites: buster, stretch
  • size: 368 kB
  • ctags: 267
  • sloc: ansic: 1,428; cpp: 77; makefile: 10
file content (65 lines) | stat: -rw-r--r-- 1,917 bytes parent folder | download | duplicates (5)
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
/************************************************************************/
/*  Imakefile for xautolock. Edit to your likings.                      */
/************************************************************************/

/*
 *  Tell it what extensions to use.
 */
#define HasScreenSaver 1  /* By default assume to have MIT ScreenSaver, */

#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)

distclean:: clean