Initial import of the CDE 2.1.30 sources from the Open Group.
[oweals/cde.git] / cde / programs / dtksh / ksh93 / Imakefile
1 XCOMM $XConsortium: Imakefile /main/7 1996/05/09 17:33:38 drk $
2 LOCAL_LIBRARIES =
3 SRCS =
4 SUBCFLAGS = -O
5 UFLAGS = $(SUBCFLAGS)
6 ULDFLAGS =
7
8 #ifdef RsArchitecture
9 CCFLAGS = CCFLAGS="   "
10 #else
11 CCFLAGS =
12 #endif
13
14 #ifdef SunArchitecture
15 .NO_PARALLEL:
16 #endif /* SunArchitecture */
17
18 FORCE_SHIP = -E
19
20 MALLOCOBJ =
21
22 KSHSRC = ./src/cmd/ksh93
23
24 KSHLIBS = \
25                 $(KSHSRC)/../../lib/libcmd/libcmd.a
26
27 KSH_OBJS = \
28                 $(KSHSRC)/main.o \
29                 $(KSHSRC)/timers.o \
30                 $(KSHLIBS)
31
32 OBJS = $(KSH_OBJS) $(KSH_LIBS)
33
34
35 SUIDEXECDEFINES = \
36         -DPROFILEPATH=\"$(CDE_CONFIGURATION_TOP)/config/profile\" \
37         -DSUIDPROFILEPATH=\"$(CDE_CONFIGURATION_TOP)/config/suid_profile\" \
38         -DSUIDEXECPATH=\"$(CDE_INSTALLATION_TOP)/bin/suid_exec\" \
39         -DCDE_INSTALLATION_TOP=\"$(CDE_INSTALLATION_TOP)\"
40
41 CCFLAGS = $(CDEBUGFLAGS) $(SUIDEXECDEFINES) $(STD_DEFINES) $(ANSI_DEFINES)
42
43 all:: ksh93src ksh93.o
44
45 XCOMM
46 XCOMM A temporary hack until we get Imakefiles in the base of ksh-93.
47 XCOMM
48 XCOMM We test for presense of /bin/ksh because on HP/UX there is a
49 XCOMM limitation in the size of environment variables that prevents the
50 XCOMM ksh-93 build scripts from functioning.  That will be worked around
51 XCOMM in a near future release of ksh-93 as well, but then again this
52 XCOMM whole target will change anyway.
53 XCOMM
54
55 SHIP_DIR = ship
56 ALL_SUBS = *
57
58 ksh93src:
59         $(RM) $(SHIP_DIR)/$(ALL_SUBS)/$(ALL_SUBS)/BUILT; \
60         if [ -f /bin/ksh ]; \
61         then \
62                 SHELL=/bin/ksh CC=$(CC) CCFLAGS="$(CCFLAGS)" /bin/ksh ship/shipin $(FORCE_SHIP); \
63         elif [ -f /bin/sh ]; \
64         then \
65                 SHELL=/bin/sh CC=$(CC) CCFLAGS="$(CCFLAGS)"  /bin/sh ship/shipin $(FORCE_SHIP); \
66         else \
67                 SHELL="" CC=$(CC) CCFLAGS="$(CCFLAGS)"  ship/shipin $(FORCE_SHIP); \
68         fi
69
70 ksh93.o: $(OBJS)
71         $(LD) -r -o $@ $(OBJS)
72
73 clobber:: clobmine
74
75 clobmine:
76         $(RM) -f libksh93.a
77
78 depend::
79
80 install::