File: Imakefile

package info (click to toggle)
xconq 7.2.2-2
  • links: PTS
  • area: main
  • in suites: slink
  • size: 8,296 kB
  • ctags: 9,199
  • sloc: ansic: 107,849; sh: 2,108; perl: 2,057; makefile: 1,177; sed: 161; csh: 50; awk: 49; lisp: 39
file content (87 lines) | stat: -rw-r--r-- 2,272 bytes parent folder | download | duplicates (2)
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
/* Imakefile for X11 Xconq. */

#include "../Local.config"

/*
 * ComplexProgramTarget_4 - generate rules for compiling and linking the
 * program specified by $(OBJS4) and $(SRCS4) and installing the program and
 * man page.  It should be used to build the fourth program in Imakefiles 
 * describing more than one program.
 */
#ifdef IhaveXPM
#ifndef ComplexProgramTarget_4
#define	ComplexProgramTarget_4(program,locallib,syslib)			@@\
ProgramTargetHelper(program,SRCS4,OBJS4,DEPLIBS4,locallib,syslib)
#endif /* ComplexProgramTarget_4 */
#endif /* IhaveXPM */

XCOMM Common defines

DEFINES = -DUNIX -DIMFLIB=\"$(XC_X11LIBDIR)\" 

#ifdef IhaveXPM
EXTRA_DEFINES = -DHAVE_XPM -DHAVE_SELFILE
#else  /* IhaveXPM */
EXTRA_DEFINES = -DHAVE_SELFILE
#endif /* IhaveXPM */

INCLUDES = -I. -I../kernel

LOCAL_LIBRARIES = XawClientLibs

CONQLOW_LIBRARIES = ../kernel/libconqlow.a

CONQ_LIBRARIES = ../kernel/libconq.a $(CONQLOW_LIBRARIES)

SRCS1 = xconq.c

OBJS1 =	xconq.o \
	xinit.o \
	xmap.o \
	xdraw.o \
	xcmd.o \
	xprint.o \
	xdesign.o \
	xhelp.o \
	ximf.o \
	xcloseup.o

XUTOBJ = ximf.o \
	 xutil.o

OBJS2 = xshowimf.o $(XUTOBJ)
OBJS3 = x2imf.o $(XUTOBJ)
OBJS4 = imf2x.o $(XUTOBJ)

#ifdef IhaveXPM
PROGRAMS = xconq x2imf imf2x xshowimf Xconq-color.ad XShowimf-color.ad
#else  /* IhaveXPM */
PROGRAMS = xconq x2imf xshowimf
#endif /* IhaveXPM */

ComplexProgramTarget_1(xconq, $(CONQ_LIBRARIES), $(LOCAL_LIBRARIES) -lm)

#ifdef IhaveXPM
ComplexProgramTarget_2(xshowimf, $(CONQLOW_LIBRARIES) ../SelFile/libXgnu.a, -lXpm $(LOCAL_LIBRARIES))
ComplexProgramTarget_3(x2imf, $(CONQLOW_LIBRARIES), -lXpm $(LOCAL_LIBRARIES))
ComplexProgramTarget_4(imf2x, $(CONQLOW_LIBRARIES), -lXpm $(LOCAL_LIBRARIES))
#else  /* IhaveXPM */
ComplexProgramTarget_2(xshowimf, $(CONQLOW_LIBRARIES) ../SelFile/libXgnu.a, $(LOCAL_LIBRARIES))
ComplexProgramTarget_3(x2imf, $(CONQLOW_LIBRARIES), $(LOCAL_LIBRARIES))
#endif /* IhaveXPM */

install:: 
	chown $(GAMEUID) $(BINDIR)/xconq
	chgrp $(GAMEGRP) $(BINDIR)/xconq
	chmod $(GAMEPERM) $(BINDIR)/xconq

Xconq-color.ad: Xconq-co.ad
	cp Xconq-co.ad Xconq-color.ad

XShowimf-color.ad: XShowimf-co.ad
	cp XShowimf-co.ad XShowimf-color.ad

InstallAppDefaults(Xconq)
InstallAppDefaults(Xconq-color)
InstallAppDefaults(XShowimf)
InstallAppDefaults(XShowimf-color)