File: Imakefile

package info (click to toggle)
xonix 1.4-31
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd, stretch
  • size: 636 kB
  • ctags: 1,039
  • sloc: ansic: 8,483; sh: 28; makefile: 19
file content (48 lines) | stat: -rw-r--r-- 1,164 bytes parent folder | download | duplicates (6)
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
#
# Imakefile,v 1.13 1995/09/14 11:52:08 j Exp
#

#ifndef SharedLibXpm
#define SharedLibXpm HasSharedLibraries
#endif

XCOMM actually, not, but it doesn't matter
        XPMSRC = $(LIBSRC)/Xpm

#if SharedLibXpm
#ifndef SharedXpmRev
#define SharedXpmRev 4.5   /* current SO revision (Xpm 3.4e) */
#endif
SharedLibReferences(XPM,Xpm,$(XPMSRC),SOXPMREV,SharedXpmRev)
#else
UnsharedLibReferences(XPM,Xpm,$(XPMSRC))
#endif

#define XpmDepLib  $(XPMDEPLIB)
#define XpmLib     $(XPMLIB)

           PROG = xonix
       XONIXDIR = $(LIBDIR)/xonix
           CUTE = -DSEND_MAIL	/* cute feature :-) */

        DEPLIBS = XawClientDepLibs XpmDepLib
LOCAL_LIBRARIES = XawClientLibs XpmLib
  EXTRA_DEFINES = -DUSE_X11 -DXONIXDIR=\"$(XONIXDIR)\" $(CUTE)
/*    CDEBUGFLAGS = DebuggableCDebugFlags */

           SRCS = xonix.c x11.c stack.c
           OBJS = xonix.o x11.o stack.o

ComplexProgramTarget($(PROG))
InstallAppDefaults(Xonix)

/*
 * MakeDirectories() cannot be used due to the umask 0 requirement.
 */
install::
	@umask 0;							\
	if [ -d $(DESTDIR)$(XONIXDIR) ] ; then				\
		exit 0 ;						\
	else								\
		( set -x ; $(MKDIRHIER) $(DESTDIR)$(XONIXDIR) ) ;	\
	fi