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 -I$(KSH93SRC)/src/cmd/ksh93
8 /* DEPLIBS contains the list of library depencies for a client.
9 * LOCAL_LIBRARIES contains the list of libraries on the link line.
10 * Generally, the dependency form of a library has DEP as a prefix.
11 * e.g. put $(XLIB) in LOCAL_LIBRARIES and $(DEPXLIB) in DEPLIBS.
12 * NOTE: if DEPLIBS is not set here, it is by default null and there
13 * are no library dependencies for clients.
14 * You cannot put -Llibpath into DEPLIBS. You must put actual
15 * paths to the library.
17 DEPLIBS = $(DEPDTHELPLIB) $(DEPDTSVCLIB) $(DEPDTWIDGETLIB) $(DEPDTPRINTLIB) \
18 $(DEPXPLIB) $(DEPTTLIB) $(DEPXMLIB) $(DEPXTOOLLIB) $(DEPXLIB) \
19 $(KSH93SRC)/lib/libast.a
20 LOCAL_LIBRARIES = $(DTHELPLIB) $(DTWIDGETLIB) $(DTSVCLIB) $(DTPRINTLIB) \
21 $(XPLIB) $(TTLIB) $(XMLIB) $(XTOOLLIB) $(XLIB) \
22 $(KSH93SRC)/lib/libcmd.a $(KSH93SRC)/lib/libast.a
24 SYS_LIBRARIES = -lm $(DYNLIBSYSLIB) $(REGEXSYSLIB) $(ICONVSYSLIB)
27 EXTRA_DEFINES = -Wl,-E -DHPUX_DYNLIB -Wp,-H12000
28 SYS_LIBRARIES = -lm -ldld
32 EXTRA_DEFINES = -DDYNLIB -D_IBMRPC_
33 LOCAL_LDFLAGS = -bE:dtksh.exp
36 #if defined (SunArchitecture)
37 EXTRA_DEFINES = -DDYNLIB
40 #if defined (USLArchitecture)
41 EXTRA_DEFINES = -DDYNLIB
42 LOCAL_LDFLAGS = -Wl,-Bexport:dtksh.exp
45 #if defined (UXPArchitecture)
46 EXTRA_DEFINES = -DDYNLIB
47 LOCAL_LDFLAGS = -Wl,-Bexport:dtksh.exp
50 #if defined(HPOSFArchitecture)
54 #if defined(ApolloArchitecture)
55 EXTRA_INCLUDES = -I/bsd4.3/usr/include -I/sys5/usr/include \
56 -I$(DTHELPSRC) -I$(DTPRINTSRC)
58 EXTRA_INCLUDES = -I$(DTHELPSRC) -I$(DTPRINTSRC)
61 #ifdef SunArchitecture
65 #ifdef LinuxArchitecture
66 SYS_LIBRARIES = -lm -ldl
70 #define PassCDebugFlags 'CDEBUGFLAGS=$(CDEBUGFLAGS)'
72 SUBDIRS = examples ksh93
73 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"