1 XCOMM $TOG: Imakefile /main/15 1998/04/07 08:55:29 mgreess $
2 DESKTOP_VERSION_STRING = DesktopVersionString
5 DEPEND_DEFINES = $(DEPENDDEFINES)
6 INCLUDES = -I. -I$(KSH93SRC)/include/ast -I$(KSH93SRC)/src/cmd/ksh93/include \
7 -I$(KSH93SRC)/src/cmd/ksh93 $(TIRPCINC)
9 /* DEPLIBS contains the list of library depencies for a client.
10 * LOCAL_LIBRARIES contains the list of libraries on the link line.
11 * Generally, the dependency form of a library has DEP as a prefix.
12 * e.g. put $(XLIB) in LOCAL_LIBRARIES and $(DEPXLIB) in DEPLIBS.
13 * NOTE: if DEPLIBS is not set here, it is by default null and there
14 * are no library dependencies for clients.
15 * You cannot put -Llibpath into DEPLIBS. You must put actual
16 * paths to the library.
18 DEPLIBS = $(DEPDTHELPLIB) $(DEPDTSVCLIB) $(DEPDTWIDGETLIB) $(DEPDTPRINTLIB) \
19 $(DEPTTLIB) $(DEPXMLIB) $(DEPXTOOLLIB) $(DEPXLIB) \
20 $(KSH93SRC)/lib/libast.a
21 LOCAL_LIBRARIES = $(DTHELPLIB) $(DTWIDGETLIB) $(DTSVCLIB) $(DTPRINTLIB) \
22 $(TTLIB) $(XMLIB) $(XTOOLLIB) $(XLIB) \
23 $(KSH93SRC)/lib/libcmd.a $(KSH93SRC)/lib/libast.a
25 SYS_LIBRARIES = -lm $(DYNLIBSYSLIB) $(REGEXSYSLIB) $(ICONVSYSLIB)
28 EXTRA_DEFINES = -Wl,-E -DHPUX_DYNLIB -Wp,-H12000
29 SYS_LIBRARIES = -lm -ldld
33 EXTRA_DEFINES = -DDYNLIB -D_IBMRPC_
34 LOCAL_LDFLAGS = -bE:dtksh.exp
37 #if defined (SunArchitecture)
38 EXTRA_DEFINES = -DDYNLIB
41 EXTRA_INCLUDES = -I$(DTHELPSRC) -I$(DTPRINTSRC)
43 #ifdef SunArchitecture
47 #ifdef LinuxArchitecture
48 SYS_LIBRARIES = -lm -ldl
52 #define PassCDebugFlags 'CDEBUGFLAGS=$(CDEBUGFLAGS)'
54 SUBDIRS = examples ksh93
55 KSH93OBJ = $(KSH93SRC)/ksh93.o
57 MakeSubdirs($(SUBDIRS))
59 KSH93LIBSHELL = $(KSH93SRC)/src/cmd/ksh93/libshell.a
100 cd $(KSH93SRC); $(MAKE)
103 XCOMM Must replace standard ksh tables of builtins and aliases
104 XCOMM with our augmented versions.
107 libshell.a: $(KSH93SLIBSHELL) userinit.o builtins.o aliases.o
108 $(CP) $(KSH93LIBSHELL) libshell.a; \
109 ar d libshell.a userinit.o builtins.o aliases.o ; \
110 $(AR) libshell.a userinit.o builtins.o aliases.o
112 SpecialObjectRule(userinit.o,$(NULL),-DSHOPT_VSH -DKSHELL -D_TRACE_ )
113 SpecialObjectRule(builtins.o,$(NULL),-DSHOPT_VSH -DKSHELL -D_TRACE_ )
114 SpecialObjectRule(aliases.o,$(NULL),-DSHOPT_VSH -DKSHELL -D_TRACE_ )
116 ComplexProgramTarget($(PROGRAMS))
119 @echo " Cleaning ksh directories"