summaryrefslogtreecommitdiff
path: root/xc/programs/Xserver/hw/xfree86/etc/Imakefile
blob: 842334b2d365f5e6b099cbe98f18cbd444c81611 (plain)
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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
XCOMM $XConsortium: Imakefile /main/24 1996/10/28 04:24:12 kaleb $





XCOMM $XFree86: xc/programs/Xserver/hw/xfree86/etc/Imakefile,v 3.38 2001/03/21 17:36:47 dawes Exp $
#include <Server.tmpl>

#if SystemV
 CONFIGFILES = ldterm.sdevice ptem.sdevice ptm.sdevice pts.node \
               pts.sdevice sp.node sp.sdevice
    INSTPROG = install.sv3
#ifdef i386ScoArchitecture
   MISCFILES = dmmap.shar 
#else
   MISCFILES = mmapSVR3.shar
#endif
#endif

#if SystemV4
    INSTPROG = install.sv4
     XDMCONF = XdmConf.svr4
#ifdef SunArchitecture
   MISCFILES = apSolx86.shar xcode.xfree86
#else
   MISCFILES = 2key.c xcode.xfree86
#endif
#endif

#ifdef LynxOSArchitecture
 CONFIGFILES = pty.cfg
   MISCFILES = MTRR-Lynx.shar 
#endif

/* Are these really needed? */
#if 0
# ifdef FreeBSDArchitecture
    INSTPROG = inst.freebsd
# endif
# ifdef NetBSDArchitecture
    INSTPROG = inst.netbsd
# endif
#endif

#if !BuildServersOnly && BuildClients
#ifdef SunArchitecture
   TERMFILES = xterm.termcap xterm.terminfo
#else
   TERMFILES = sun.termcap sun.terminfo xterm.termcap xterm.terminfo
#endif
#endif

XINST = Xinstall.sh

       FILES = $(CONFIGFILES) $(TERMFILES) \
               $(PATCHFILES) $(XDMCONF) \
               xmodmap.std $(MISCFILES) $(XINST)
    INCLUDES = -I. -I$(XF86COMSRC) -I$(XF86OSSRC) \
	       -I$(SERVERSRC)/include -I$(XINCLUDESRC) -I$(XF86SRC)/scanpci \
	       -I$(XF86SRC)/dummylib

#ifdef ServerExtraSysLibs
SERVEREXTRASYSLIBS = ServerExtraSysLibs
#endif


all:: $(FILES)

#if defined(FreeBSDArchitecture) || defined(NetBSDArchitecture) || defined(OpenBSDArchitecture)
       SRCS1 = kbd_mode.c
     DEFINES = XFree86ConsoleDefines

AllTarget(kbd_mode)

SingleProgramTarget(kbd_mode,kbd_mode.o,NullParameter,NullParameter)

InstallProgram(kbd_mode,$(BINDIR))
InstallManPage(kbd_mode,$(MANDIR))
#endif

#if BuildScanpci
       SRCS2 = scanpci.c

#if defined(OpenBSDArchitecture) || defined(NetBSDArchitecture) \
    && ((OSMajorVersion == 1 && OSMinorVersion >= 1) || OSMajorVersion >= 2)
DEFINES = -DUSE_I386_IOPL
SYS_LIBRARIES = -li386
#endif

AllTarget(ProgramTargetName(scanpci))

NormalProgramTarget(scanpci,scanpci.o,NullParameter,-L../os-support -lxf86_os -L../scanpci -lscanpci -L../dummylib -ldummy $(SERVEREXTRASYSLIBS),NullParameter)
InstallProgram(scanpci,$(BINDIR))
InstallManPage(scanpci,$(MANDIR))
#endif

#if JoystickSupport || Joystick2Support
       SRCS3 = joycal.c

AllTarget(ProgramTargetName(joycal))

NormalProgramTarget(joycal,joycal.o,NullParameter,NullParameter,NullParameter)
InstallProgram(joycal,$(BINDIR))
#endif

        SRCS4 = pcitweak.c

AllTarget(ProgramTargetName(pcitweak))
NormalProgramTarget(pcitweak,pcitweak.o,NullParameter,-L../os-support -lxf86_os -L../dummylib -ldummy $(SERVEREXTRASYSLIBS),NullParameter)
InstallProgram(pcitweak,$(BINDIR))
InstallManPage(pcitweak,$(MANDIR))

        SRCS = $(SRCS1) $(SRCS2) $(SRCS3) $(SRCS4)

#if (SystemV && !defined(i386ScoArchitecture)) || SystemV4
InstallNamedProg($(INSTPROG),xf86install,$(LIBDIR)/etc)
#endif

InstallMultipleDestFlags(install,$(FILES),$(LIBDIR)/etc,$(INSTDATFLAGS))

#if SystemV
InstallNamedProg(svr3_patch,svr3_patch,$(LIBDIR)/etc)
InstallNamedProg(svr3_rem_pch,svr3_patch_rem,$(LIBDIR)/etc)
#endif
#if SystemV4 && !defined(SunArchitecture)
InstallNamedProg(svr4_patch,svr4_patch,$(LIBDIR)/etc)
InstallNamedProg(svr4_rem_pch,svr4_patch_rem,$(LIBDIR)/etc)
#endif

#if !BuildServersOnly && BuildClients
LinkFile(xterm.termcap,$(PROGRAMSRC)/xterm/termcap)
LinkFile(xterm.terminfo,$(PROGRAMSRC)/xterm/terminfo)
#endif

LinkFile(sun.termcap,sun.tcap)
LinkFile(sun.terminfo,sun.tinfo)

NormalLibraryObjectRule()
DependTarget()