1 XCOMM $TOG: Imakefile /main/15 1998/04/07 08:55:29 mgreess $
2 DESKTOP_VERSION_STRING = DesktopVersionString
5 INCLUDES = -I. -I$(KSH93SRC)/include/ast -I$(KSH93SRC)/src/cmd/ksh93/include -I$(KSH93SRC)/src/cmd/ksh93
7 /* DEPLIBS contains the list of library depencies for a client.
8 * LOCAL_LIBRARIES contains the list of libraries on the link line.
9 * Generally, the dependency form of a library has DEP as a prefix.
10 * e.g. put $(XLIB) in LOCAL_LIBRARIES and $(DEPXLIB) in DEPLIBS.
11 * NOTE: if DEPLIBS is not set here, it is by default null and there
12 * are no library dependencies for clients.
13 * You cannot put -Llibpath into DEPLIBS. You must put actual
14 * paths to the library.
16 DEPLIBS = $(DEPDTHELPLIB) $(DEPDTSVCLIB) $(DEPDTWIDGETLIB) $(DEPDTPRINTLIB) \
17 $(DEPXPLIB) $(DEPTTLIB) $(DEPXMLIB) $(DEPXTOOLLIB) $(DEPXLIB) \
18 $(KSH93SRC)/lib/libast.a
19 LOCAL_LIBRARIES = $(DTHELPLIB) $(DTWIDGETLIB) $(DTSVCLIB) $(DTPRINTLIB) \
20 $(XPLIB) $(TTLIB) $(XMLIB) $(XTOOLLIB) $(XLIB) \
21 $(KSH93SRC)/lib/libcmd.a $(KSH93SRC)/lib/libast.a
23 SYS_LIBRARIES = -lm $(DYNLIBSYSLIB) $(REGEXSYSLIB) $(ICONVSYSLIB)
26 EXTRA_DEFINES = -Wl,-E -DHPUX_DYNLIB -Wp,-H12000
27 SYS_LIBRARIES = -lm -ldld
31 EXTRA_DEFINES = -DDYNLIB -D_IBMRPC_
32 LOCAL_LDFLAGS = -bE:dtksh.exp
35 #if defined (SunArchitecture)
36 EXTRA_DEFINES = -DDYNLIB
39 #if defined (USLArchitecture)
40 EXTRA_DEFINES = -DDYNLIB
41 LOCAL_LDFLAGS = -Wl,-Bexport:dtksh.exp
44 #if defined (UXPArchitecture)
45 EXTRA_DEFINES = -DDYNLIB
46 LOCAL_LDFLAGS = -Wl,-Bexport:dtksh.exp
49 #if defined(HPOSFArchitecture)
53 #if defined(ApolloArchitecture)
54 EXTRA_INCLUDES = -I/bsd4.3/usr/include -I/sys5/usr/include \
55 -I$(DTHELPSRC) -I$(DTPRINTSRC)
57 EXTRA_INCLUDES = -I$(DTHELPSRC) -I$(DTPRINTSRC)
60 #ifdef SunArchitecture
65 #define PassCDebugFlags 'CDEBUGFLAGS=$(CDEBUGFLAGS)'
67 #if defined(LinuxArchitecture)
71 SUBDIRS = examples ksh93
72 KSH93OBJ = $(KSH93SRC)/ksh93.o
75 MakeSubdirs($(SUBDIRS))
77 KSH93LIBSHELL = $(KSH93SRC)/src/cmd/ksh93/libshell.a
118 cd $(KSH93SRC); $(MAKE)
121 XCOMM Must replace standard ksh tables of builtins and aliases
122 XCOMM with our augmented versions.
125 libshell.a: $(KSH93SLIBSHELL) userinit.o builtins.o aliases.o
126 $(CP) $(KSH93LIBSHELL) libshell.a; \
127 ar d libshell.a userinit.o builtins.o aliases.o ; \
128 $(AR) libshell.a userinit.o builtins.o aliases.o
130 SpecialObjectRule(userinit.o,$(NULL),-DSHOPT_VSH -DKSHELL -D_TRACE_ )
131 SpecialObjectRule(builtins.o,$(NULL),-DSHOPT_VSH -DKSHELL -D_TRACE_ )
132 SpecialObjectRule(aliases.o,$(NULL),-DSHOPT_VSH -DKSHELL -D_TRACE_ )
134 ComplexProgramTarget($(PROGRAMS))
137 @echo " Cleaning ksh directories"