120 lines
3.4 KiB
Plaintext
120 lines
3.4 KiB
Plaintext
XCOMM $TOG: Imakefile /main/15 1998/04/07 08:55:29 mgreess $
|
|
DESKTOP_VERSION_STRING = DesktopVersionString
|
|
|
|
#define IHaveSubdirs
|
|
#define PassCDebugFlags 'CDEBUGFLAGS=$(CDEBUGFLAGS)'
|
|
|
|
SUBDIRS = examples
|
|
|
|
MakeSubdirs($(SUBDIRS))
|
|
|
|
KSH93SRC = ./ksh93
|
|
|
|
SYS_LIBRARIES = -lm $(DYNLIBSYSLIB) $(REGEXSYSLIB) $(ICONVSYSLIB)
|
|
|
|
#ifdef LinuxArchitecture
|
|
SYS_LIBRARIES = -lm -ldl
|
|
#endif
|
|
|
|
#ifdef HPArchitecture
|
|
EXTRA_DEFINES = -Wl,-E -Wp,-H12000
|
|
SYS_LIBRARIES = -lm -ldld
|
|
#endif
|
|
|
|
#ifdef RsArchitecture
|
|
EXTRA_DEFINES = -D_IBMRPC_
|
|
LOCAL_LDFLAGS = -bE:dtksh.exp
|
|
#endif
|
|
|
|
#ifdef SunArchitecture
|
|
.NO_PARALLEL:
|
|
|
|
SYS_LIBRARIES = -lm -lsecdb -lsocket -lnsl
|
|
#endif
|
|
|
|
DEPEND_DEFINES = $(DEPENDDEFINES)
|
|
INCLUDES = -I. -I$(KSH93SRC)/include/ast \
|
|
-I$(KSH93SRC)/src/cmd/ksh93 \
|
|
-I$(KSH93SRC)/src/cmd/ksh93/include -I$(KSH93SRC)/src/cmd/ksh93 \
|
|
-I$(KSH93SRC)/src/lib/libast/include $(TIRPCINC)
|
|
|
|
/* DEPLIBS contains the list of library depencies for a client.
|
|
* LOCAL_LIBRARIES contains the list of libraries on the link line.
|
|
* Generally, the dependency form of a library has DEP as a prefix.
|
|
* e.g. put $(XLIB) in LOCAL_LIBRARIES and $(DEPXLIB) in DEPLIBS.
|
|
* NOTE: if DEPLIBS is not set here, it is by default null and there
|
|
* are no library dependencies for clients.
|
|
* You cannot put -Llibpath into DEPLIBS. You must put actual
|
|
* paths to the library.
|
|
*/
|
|
DEPLIBS = $(DEPDTHELPLIB) $(DEPDTSVCLIB) $(DEPDTWIDGETLIB) $(DEPDTPRINTLIB) \
|
|
$(DEPTTLIB) $(DEPXMLIB) $(DEPXTOOLLIB) $(DEPXLIB) \
|
|
$(KSH93SRC)/lib/libast.a
|
|
LOCAL_LIBRARIES = $(DTHELPLIB) $(DTWIDGETLIB) $(DTSVCLIB) $(DTPRINTLIB) \
|
|
$(TTLIB) $(XMLIB) $(XTOOLLIB) $(XLIB) \
|
|
$(KSH93SRC)/lib/libcmd.a $(KSH93SRC)/lib/libast.a \
|
|
$(KSH93SRC)/lib/libdll.a libshell.a
|
|
|
|
EXTRA_DEFINES = -DKSHELL -DSHOPT_RAWONLY '-DAST_VERSION=20111111'
|
|
|
|
EXTRA_INCLUDES = -I$(DTHELPSRC) -I$(DTPRINTSRC)
|
|
|
|
SUIDEXECDEFINES = \
|
|
-DPROFILEPATH=\"$(CDE_CONFIGURATION_TOP)/config/profile\" \
|
|
-DSUIDPROFILEPATH=\"$(CDE_CONFIGURATION_TOP)/config/suid_profile\" \
|
|
-DSUIDEXECPATH=\"$(CDE_INSTALLATION_TOP)/bin/suid_exec\" \
|
|
-DCDE_INSTALLATION_TOP=\"$(CDE_INSTALLATION_TOP)\" -DBUILD_DTKSH
|
|
|
|
KSH93LIBSHELL = $(KSH93SRC)/lib/libshell.a
|
|
|
|
PROGRAMS = dtksh
|
|
|
|
SRCS = widget.c \
|
|
dtkcvt.c \
|
|
dtkcmds.c \
|
|
XtCvtrs.c \
|
|
xmcvt.c \
|
|
xmcmds.c \
|
|
xmwidgets.c \
|
|
extra.c \
|
|
findsym.c \
|
|
msgs.c
|
|
|
|
OBJS = \
|
|
pmain.o \
|
|
init.o \
|
|
libshell.a \
|
|
widget.o \
|
|
dtkcvt.o \
|
|
dtkcmds.o \
|
|
XtCvtrs.o \
|
|
xmcvt.o \
|
|
xmcmds.o \
|
|
xmwidgets.o \
|
|
extra.o \
|
|
findsym.o \
|
|
msgs.o \
|
|
$(LOCAL_LIBRARIES2)
|
|
|
|
all:: dtksh
|
|
|
|
libshell.a: $(KSH93LIBSHELL) init.o
|
|
$(CP) $(KSH93LIBSHELL) libshell.a; \
|
|
ar d libshell.a init.o; \
|
|
$(AR) libshell.a init.o
|
|
|
|
pmain.o:
|
|
cd ksh93; ./bin/package flat make CCFLAGS='$(SUIDEXECDEFINES) -g'
|
|
cp ./ksh93/src/cmd/ksh93/sh/init.c init.c
|
|
patch --posix init.c -i init.patch
|
|
./setup.sh
|
|
|
|
SpecialObjectRule(init.o, $(NULL), -DSHOPT_STATS -DSHOPT_NAMESPACE -DSHOPT_2DMATCH -DSHOPT_PFSH -DSHOPT_MULTIBYTE -DSHOPT_BGX -DSHOPT_AUDIT '-D_API_ast=20100309' -D_PACKAGE_ast -DSHOPT_DYNAMIC -D_BLD_shell -DSHOPT_KIA -DKSHELL -DSHOPT_HISTEXPAND -DSHOPT_EDPREDICT -DSHOPT_ESH -DSHOPT_VSH -DSHOPT_FIXEDARRAY '-DERROR_CONTEXT_T=Error_context_t' -DSHOPT_SUID_EXEC -DSHOPT_BRACEPAT -DBUILD_DTKSH -l$(KSH93SRC)/lib/libcmd.a -l$(KSH93SRC)/lib/libast.a -l$(KSH93SRC)/lib/libdll.a)
|
|
|
|
ComplexProgramTarget($(PROGRAMS))
|
|
|
|
clean::
|
|
cd ksh93; ./bin/package flat clean
|
|
rm -f init.c
|
|
rm -rf FEATURE
|