Remove UXPDS support
[oweals/cde.git] / cde / programs / dtappbuilder / src / ab.tmpl
1 /*
2  * $XConsortium: ab.tmpl /main/10 1996/10/07 16:57:05 drk $
3  *
4  *      RESTRICTED CONFIDENTIAL INFORMATION:
5  *      
6  *      The information in this document is subject to special
7  *      restrictions in a confidential disclosure agreement between
8  *      HP, IBM, Sun, USL, Fujitsu,  SCO and Univel.  Do not distribute this
9  *      document outside HP, IBM, Sun, USL, Fujitsu, SCO, or Univel without
10  *      Sun's specific written approval.  This document and all copies
11  *      and derivative works thereof must be returned or destroyed at
12  *      Sun's request.
13  *
14  * (c) Copyright 1996 Digital Equipment Corporation.
15  * (c) Copyright 1996 Hewlett-Packard Company.
16  * (c) Copyright 1996 International Business Machines Corp.
17  * (c) Copyright 1993,1996 Sun Microsystems, Inc.
18  * (c) Copyright 1996 Novell, Inc. 
19  * (c) Copyright 1996 FUJITSU LIMITED.
20  * (c) Copyright 1996 Hitachi.
21  */
22
23 /*
24  * Variables private to the App Builder src directory and general imake
25  * variables set for App Builder builds
26  *
27  * ABINCLUDES           path from any one of ab subdirs to include
28  */
29
30 /*
31  * App Builder private variables
32  */
33 ABINCLUDES = ../include
34
35 /*
36  * use only posix-compliant functions
37  * and force ansi compliance
38  */
39
40 /*
41  * We're going to add a clean target, so we need this here, so that
42  * clean does not become the default
43  */
44 default_target: all
45
46 /*
47  * Imake variables
48  */
49 #ifdef SunArchitecture
50 /*
51  * -xF and -M cause reordering of executable
52  */
53 LOCAL_LDFLAGS =
54 EXTRA_DEFINES = -D_POSIX_SOURCE=1
55
56 clean::
57         touch .make.state
58         $(RM) .make.*
59 #endif
60
61 #if defined(USLArchitecture)
62 EXTRA_DEFINES = -D_POSIX_SOURCE=1
63 #elif defined(AlphaArchitecture)
64 EXTRA_DEFINES = -D_XOPEN_SOURCE=1 -D_OSF_SOURCE=1
65 /* default storage(40000) is not enough to process ./src/libABil/bil_parse.y */
66 YACCFLAGS = -N100000
67 #else
68 YACC = YaccCmd
69 LEX = LexCmd
70 #endif
71
72 #ifdef HPArchitecture
73 /*
74  * use only posix-compliant functions
75  * Set yaccflags here because hp.cf does not have -Nc20000
76  * The YACCFLAGS line will be removed if/when hp.cf is updated
77  */
78 EXTRA_DEFINES =  -D_POSIX_SOURCE=1
79 YACCFLAGS = -Nm100000 -Nc20000
80
81 /*
82  * dtbuilder (e.g. in abmf.c'abmf_init) modifies string constants
83  * declared in lib_func_strings.c, so we must suppress +ESlit.
84  */
85 CCOPTIONS = -Ae
86 #endif
87
88 #ifdef IBMArchitecture
89 /*
90  * use only posix-compliant functions
91  * and force ansi compliance
92  */
93 EXTRA_DEFINES =  -D_POSIX_SOURCE=1
94 YACCFLAGS = -Nm100000
95 #endif
96
97
98 /*
99  * Create the necesary build-time include directories
100  */
101 #ifdef SunArchitecture
102 .NO_PARALLEL: $(ABINCLUDES)/ab $(ABINCLUDES)/ab_private
103 .NO_PARALLEL: depend install binstall install.man includes shared_includes localincludes $(PROGRAM) $(LIBRARY) $(TARGET)
104 #endif
105
106 $(ABINCLUDES)/ab_private:
107         $(MKDIRHIER) $(ABINCLUDES)/ab_private
108
109 $(ABINCLUDES)/ab:
110         $(MKDIRHIER) $(ABINCLUDES)/ab
111
112 includes:: $(ABINCLUDES)/ab $(ABINCLUDES)/ab_private
113