File: Imakefile

package info (click to toggle)
xmotd 1.17.3b-13
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 572 kB
  • sloc: ansic: 3,683; makefile: 752; sh: 20
file content (145 lines) | stat: -rw-r--r-- 4,011 bytes parent folder | download | duplicates (4)
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
142
143
144
145
XCOMM BUILD INSTRUCTIONS (ALSO SEE NOTES):
XCOMM -------------------
XCOMM Step 1. xmkmf -a
XCOMM Step 2. make all 

XCOMM -----
XCOMM NOTES
XCOMM ----- 
XCOMM If using /usr/openwin/bin/xmkmf, replace step 1 with:
XCOMM 1. xmkmf; make makefiles; make includes; make depend
XCOMM
XCOMM If building with Motif and HTML replace step 2 with:
XCOMM 2. make all EXTRA_DEFINES="-DMOTIF -DHAVE_HTML"
XCOMM

XCOMM CUSTOMIZING INSTRUCTIONS: To customize xmotd, uncomment
XCOMM the "#define" statments appropriately.

XCOMM If you wish to use an HTML widget instead of an ASCII text widget,
XCOMM then uncomment the following line:
XCOMM #define HAVE_HTML

XCOMM If you wish to use colour xpm pixmaps for the icon and have the
XCOMM Xpm library installed, then uncomment the following line: 
#define HAVE_XPM

XCOMM If you wish to build with Motif, then uncomment the following line:
XCOMM #define MOTIF

XCOMM If compiling MOTIF under SOLARIS 2.x (or CDE on other platforms
XCOMM (untested)),  uncomment the following line: 
XCOMM #define SOLARIS2

#ifdef MOTIF
#ifdef SOLARIS2 

XCOMM These are set if you are building on Solaris 2.x/CDE. You may
XCOMM have to set LD_LIBRARY_PATH when you run it (use a shell
XCOMM wrapper around xmotd).

 MOTIF_SOLARIS_LD_FLAG = -R/usr/dt/lib
         MOTIF_LIB_DIR = -L/usr/dt/lib 
         MOTIF_INCLUDE = -I/usr/dt/include
#else

XCOMM On other systems, if the Motif libs & includes are NOT installed
XCOMM in /usr/lib and /usr/include then uncomment and fill-in the following
XCOMM paths appropriately.

XCOMM         MOTIF_LIB_DIR = -L
XCOMM         MOTIF_INCLUDE = -I

#endif
#endif

XCOMM Don't touch anything past this point unless you know what you're doing.
XCOMM --x--x--x--x--x--x--x--x--x--x--x--x--x--x--x--x--x--x--x--x--x--

XCOMM          CC = purify gcc

             SRCS = main.c xmotd.c changed.c textmode.c usage.c browser.c logo.c atom.c
             OBJS = main.o xmotd.o changed.o textmode.o usage.o browser.o logo.o atom.o
            INCLS = maindefs.h appdefs.h main.h prototypes.h

      CDEBUGFLAGS = -g
        MANSUFFIX = 8

         MANIFEST = README GNU ACKNOWLEDGEMENTS Imakefile browser\
					Makefile XMotd XMotd_motif xmotd.8 xlogo.bm xlogo.xpm\
					$(SRCS) $(INCLS)

XCOMM No space after the equals-sign
              VER =1.17.3b
             LITE =1.17.3b

.PRECIOUS: distrib

#ifdef HPArchitecture
#ifndef LinuxArchitecture
        CCOPTIONS = -Aa -D_HPUX_SOURCE
#endif
#endif

#ifdef HAVE_XPM
          XPM_LIB = -lXpm
       XPM_DEFINE = -DHAVE_XPM
#endif

#ifdef HAVE_HTML
      HTML_DEFINE = -DHAVE_HTML
     HTML_SUB_DIR = ./libhtmlw
     HTML_DEP_LIB = htmlw
     HTML_LIB_DIR = -L$(HTML_SUB_DIR)
     HTML_INCLUDE = -I$(HTML_SUB_DIR)
         HTML_LIB = -lhtmlw

         MAKELIST = $(HTML_SUB_DIR)           

#endif

#ifdef MOTIF
    MOTIF_DEFINE = -DMOTIF
       MOTIF_LIB = -lXm
 LD_LIBRARY_PATH = $(MOTIF_SOLARIS_LD_FLAG)
#endif

    EXTRA_DEFINES = $(XPM_DEFINE) $(HTML_DEFINE) $(MOTIF_DEFINE)
   MOTD_LIBRARIES = $(XPM_LIB)  $(HTML_LIB_DIR) $(HTML_LIB) $(MOTIF_LIB_DIR) $(MOTIF_LIB) 
   EXTRA_INCLUDES = $(HTML_INCLUDE) $(MOTIF_INCLUDE)

XCOMM This is what the final link looks like:
XCOMM LOCAL_LIBRARIES = -lXm -lXmu -lXt -lXext -lX11 -lsocket -lgen -lucb  -L/usr/ucblib -R/usr/ucblib -R/usr/X11R6/lib

  LOCAL_LIBRARIES = $(MOTD_LIBRARIES) $(XAWLIB) $(XMULIBONLY) $(XTOOLONLYLIB) $(XONLYLIB)
          DEPLIBS = $(HTML_DEP_LIB) 

ComplexProgramTarget(xmotd)
InstallAppDefaults(XMotd)

#ifdef HAVE_HTML
MakefileSubdirs($(HTML_SUB_DIR))

NormalLibraryObjectRule()
	NamedTargetSubdirs(htmlw, $(HTML_SUB_DIR), , , )
#endif

distrib: $(MANIFEST)
	./distrib

lite: $(MANIFEST)
	./distrib lite

XCOMM Generate man-page
man: xmotd.8
	rm -f xmotd-man.ps;
	troff -mansun xmotd.8 |dpost >xmotd-mansun.ps

xmotd.man: xmotd.8
	cp $< $@
clean::
	rm -f xmotd.man

XCOMM This target builds the java distribution, Wed Sep 26 19:24:51 2001
java-distrib:
	tar zcvf jmotd-0.55.tar.gz jmotd/README jmotd/logo.gif jmotd/xmotd* jmotd/HistoryItem*