mirror of
git://git.code.sf.net/p/cdesktopenv/code
synced 2025-03-09 15:50:02 +00:00
programs/dtksh: add automake files
This commit is contained in:
parent
fd762e2c01
commit
9f862c06a8
2 changed files with 133 additions and 0 deletions
73
cde/programs/dtksh/Makefile.am
Normal file
73
cde/programs/dtksh/Makefile.am
Normal file
|
@ -0,0 +1,73 @@
|
|||
kshdir = ${libdir}/dtksh
|
||||
|
||||
dist_ksh_SCRIPTS = DtFuncs.dtsh
|
||||
|
||||
KSH93SRC = ./ksh93
|
||||
|
||||
if SUN
|
||||
.NO_PARALLEL:
|
||||
endif
|
||||
|
||||
SUBDIRS = examples ksh93
|
||||
KSH93OBJ = $(KSH93SRC)/ksh93.o
|
||||
KSH93LIBSHELL = $(KSH93SRC)/src/cmd/ksh93/libshell.a
|
||||
|
||||
bin_PROGRAMS = dtksh
|
||||
|
||||
dtksh_CPPFLAGS = -I$(KSH93SRC)/include/ast -I$(KSH93SRC)/src/cmd/ksh93/include \
|
||||
-I$(KSH93SRC)/src/cmd/ksh93 $(TIRPCINC) -I${srcdir}/lib/DtPrint \
|
||||
-I${srcdir}/lib/DtHelp
|
||||
dtksh_LDADD = $(DTHELPLIB) $(DTWIDGETLIB) $(DTSVCLIB) $(DTPRINTLIB) $(TTLIB) \
|
||||
-lXm $(XTOOLLIB) ${X_LIB} $(KSH93SRC)/lib/libcmd.a \
|
||||
$(KSH93SRC)/lib/libast.a -lm
|
||||
|
||||
if LINUX
|
||||
dtksh_LDADD += -ldl
|
||||
endif
|
||||
|
||||
if SUN
|
||||
dtksh_CPPFLAGS += -DDYNLIB
|
||||
endif
|
||||
|
||||
if HPUX
|
||||
dtksh_CFLAGS += -Wl,-E -DHPUX_DYNLIB -Wp,-H12000
|
||||
dtksh_LDADD += -lm -ldld
|
||||
endif
|
||||
|
||||
if AIX
|
||||
dtksh_CPPFLAGS += -DDYNLIB -D_IBMRPC_
|
||||
dtksh_LDADD += -bE:dtksh.exp
|
||||
endif
|
||||
|
||||
dtksh_SOURCES = \
|
||||
userinit.c \
|
||||
builtins.c \
|
||||
aliases.c \
|
||||
widget.c \
|
||||
dtkcvt.c \
|
||||
dtkcmds.c \
|
||||
XtCvtrs.c \
|
||||
xmcvt.c \
|
||||
xmcmds.c \
|
||||
xmwidgets.c \
|
||||
extra.c \
|
||||
xmdtksym.c \
|
||||
findsym.c \
|
||||
msgs.c
|
||||
|
||||
all:: dtksh
|
||||
|
||||
$(KSH93SRC)/ksh93.o:
|
||||
cd $(KSH93SRC); $(MAKE)
|
||||
|
||||
# Must replace standard ksh tables of builtins and aliases
|
||||
# with our augmented versions.
|
||||
|
||||
libshell.a: $(KSH93SLIBSHELL) userinit.o builtins.o aliases.o
|
||||
$(CP) $(KSH93LIBSHELL) libshell.a; \
|
||||
ar d libshell.a userinit.o builtins.o aliases.o ; \
|
||||
$(AR) libshell.a userinit.o builtins.o aliases.o
|
||||
|
||||
clean::
|
||||
@echo " Cleaning ksh directories"
|
||||
$(SHELL) MakeClean
|
60
cde/programs/dtksh/ksh93/Makefile.am
Normal file
60
cde/programs/dtksh/ksh93/Makefile.am
Normal file
|
@ -0,0 +1,60 @@
|
|||
MAINTAINERCLEANFILES = Makefile.in
|
||||
|
||||
SUBCFLAGS = -O
|
||||
UFLAGS = $(SUBCFLAGS)
|
||||
ULDFLAGS =
|
||||
IFFECDEBUGFLAGS = -O0
|
||||
|
||||
if AIX
|
||||
CCFLAGS = CCFLAGS=" "
|
||||
else
|
||||
CCFLAGS =
|
||||
endif
|
||||
|
||||
if SUN
|
||||
.NO_PARALLEL:
|
||||
endif
|
||||
|
||||
FORCE_SHIP = -F
|
||||
|
||||
MALLOCOBJ =
|
||||
|
||||
KSHSRC = ./src/cmd/ksh93
|
||||
|
||||
KSHLIBS = \
|
||||
$(KSHSRC)/../../lib/libcmd/libcmd.a
|
||||
|
||||
KSH_OBJS = \
|
||||
$(KSHSRC)/main.o \
|
||||
$(KSHSRC)/timers.o \
|
||||
$(KSHLIBS)
|
||||
|
||||
OBJS = $(KSH_OBJS) $(KSH_LIBS)
|
||||
|
||||
SUIDEXECDEFINES = \
|
||||
-DPROFILEPATH=\"$(CDE_CONFIGURATION_TOP)/config/profile\" \
|
||||
-DSUIDPROFILEPATH=\"$(CDE_CONFIGURATION_TOP)/config/suid_profile\" \
|
||||
-DSUIDEXECPATH=\"${prefix}/bin/suid_exec\" \
|
||||
-DCDE_INSTALLATION_TOP=\"${prefix}\"
|
||||
|
||||
CCFLAGS = $(CDEBUGFLAGS) $(SUIDEXECDEFINES) $(STD_DEFINES) $(ANSI_DEFINES)
|
||||
ICCFLAGS = $(IFFECDEBUGFLAGS) $(STD_DEFINES) $(ANSI_DEFINES)
|
||||
|
||||
all:: ksh93src ksh93.o
|
||||
|
||||
SHIP_DIR = ship
|
||||
ALL_SUBS = *
|
||||
|
||||
ksh93src:
|
||||
$(RM) $(SHIP_DIR)/$(ALL_SUBS)/$(ALL_SUBS)/BUILT; \
|
||||
SHELL=$(KSH) CC="$(CC)" CCFLAGS="$(CCFLAGS)" ICCFLAGS="$(ICCFLAGS)" $(KORNSHELL) ship/shipin $(FORCE_SHIP)
|
||||
|
||||
ksh93.o: $(OBJS)
|
||||
$(LD) -r -o $@ $(OBJS)
|
||||
|
||||
clobber:: clobmine
|
||||
|
||||
clobmine:
|
||||
$(RM) -f libksh93.a
|
||||
|
||||
install::
|
Loading…
Add table
Add a link
Reference in a new issue