summaryrefslogtreecommitdiffstats
path: root/Imakefile
blob: 03a8901dfb3c296709982781be83a795b2be2ed6 (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
XCOMM $XConsortium: Imakefile /main/30 1996/03/09 09:37:57 kaleb $
XCOMM $XFree86: contrib/programs/xload/Imakefile,v 3.4 1996/10/26 08:19:55 dawes Exp $
        DEPLIBS = XawClientDepLibs
LOCAL_LIBRARIES = XawClientLibs
#ifdef i386MachArchitecture
  SYS_LIBRARIES = -lsys
#endif
#ifdef SVR4Architecture
#ifdef SGIArchitecture
  SYS_LIBRARIES = -lmld
#else
#ifdef SonyArchitecture
  SYS_LIBRARIES = -lmld
#else
  SYS_LIBRARIES = -lelf
#endif
#endif
#endif
#if defined(SunArchitecture) && defined(SystemV4)
XCOMM 
XCOMM This would work great if OSMINORVERSION actually worked on Solaris...
XCOMM 
#if OSMINORVERSION >= 5
  SYS_LIBRARIES = -lresolv -lkstat
#else
  SYS_LIBRARIES = -lkvm -lelf
#endif
#endif
#ifdef SGIArchitecture
  SYS_LIBRARIES = -lmld
#endif
#ifdef OsfArchitecture
  SYS_LIBRARIES = -lld
#endif
#ifdef i386BsdArchitecture
  SYS_LIBRARIES = -lutil -lkvm
#endif
           SRCS = xload.c query_load.c get_load.c loadavgd.c
          COBJS = xload.o query_load.o get_load.o
          DOBJS = loadavgd.o get_load.o
 OSMAJORVERSION = OSMajorVersion
 OSMINORVERSION = OSMinorVersion
      DEFINES = -DOSMAJORVERSION=$(OSMAJORVERSION) -DOSMINORVERSION=$(OSMINORVERSION) 

AllTarget(xload in.loadavgd)
NormalProgramTarget(xload,$(COBJS),$(DEPLIBS),$(LOCAL_LIBRARIES),NullParameter)
NormalProgramTarget(in.loadavgd,$(DOBJS),$(DEPLIBS),$(LOCAL_LIBRARIES),NullParameter)

#if defined(OSF1Architecture) || defined(NetBSDArchitecture) || (defined(FreeBSDArchitecture) && OSMajorVersion > 1) || defined(LinuxArchitecture)
InstallProgram(xload,$(BINDIR))
InstallProgram(in.loadavdg,$(BINDIR))
#else
InstallProgramWithFlags(xload,$(BINDIR),$(INSTKMEMFLAGS))
InstallProgramWithFlags(in.loadavgd,$(BINDIR),$(INSTKMEMFLAGS))
#endif

InstallAppDefaults(XLoad)

InstallManPage(xload,$(MANDIR))

DependTarget()