From 41d3e651b43a98bac3280d40ccbdc17c325ddf61 Mon Sep 17 00:00:00 2001 From: Chase Date: Tue, 22 Oct 2019 21:40:40 -0500 Subject: [PATCH] programs/dtappbuilder: add automake files --- cde/programs/dtappbuilder/Makefile.am | 7 +++++ cde/programs/dtappbuilder/src/Makefile.am | 28 ++++++++++++++++++++ cde/programs/dtappbuilder/src/ab/Makefile.am | 28 ++++++++++++++++++++ 3 files changed, 63 insertions(+) create mode 100644 cde/programs/dtappbuilder/Makefile.am create mode 100644 cde/programs/dtappbuilder/src/Makefile.am create mode 100644 cde/programs/dtappbuilder/src/ab/Makefile.am diff --git a/cde/programs/dtappbuilder/Makefile.am b/cde/programs/dtappbuilder/Makefile.am new file mode 100644 index 00000000..501eb30c --- /dev/null +++ b/cde/programs/dtappbuilder/Makefile.am @@ -0,0 +1,7 @@ +MAINTAINERCLEANFILES = Makefile.in + +if SUN +.NO_PARALLEL: +endif + +SUBDIRS = src diff --git a/cde/programs/dtappbuilder/src/Makefile.am b/cde/programs/dtappbuilder/src/Makefile.am new file mode 100644 index 00000000..9723cdd1 --- /dev/null +++ b/cde/programs/dtappbuilder/src/Makefile.am @@ -0,0 +1,28 @@ +MAINTAINERCLEANFILES = Makefile.in + +if SUN +.NO_PARALLEL: +endif + +SUBDIRS = libAButil libABobj libABobjXm libABil abmf ab + +dtbuilder:: + @case '${MFLAGS}' in *[ik]*) set +e;; esac; \ + for i in libAButil libABobj libABobjXm libABil ab ;\ + do \ + (cd $$i ; echo "making" dtbuilder "in $(CURRENT_DIR)/$$i..."; \ + $(MAKE) $(MFLAGS) 'CDEBUGFLAGS=$(CDEBUGFLAGS)' 'FIRST_LIBPATH=$(FIRST_LIBPATH)' 'FIRST_INCLUDES=$(FIRST_INCLUDES)' dtbuilder); \ + done + +dtcodegen:: + @case '${MFLAGS}' in *[ik]*) set +e;; esac; \ + for i in libAButil libABobj libABobjXm libABil abmf ;\ + do \ + (cd $$i ; echo "making" dtcodegen "in $(CURRENT_DIR)/$$i..."; \ + $(MAKE) $(MFLAGS) 'CDEBUGFLAGS=$(CDEBUGFLAGS)' 'FIRST_LIBPATH=$(FIRST_LIBPATH)' 'FIRST_INCLUDES=$(FIRST_INCLUDES)' dtcodegen); \ + done + +bin_PROGRAMS = dtcodegen dtbuilder + +clean:: + $(RM) -rf include diff --git a/cde/programs/dtappbuilder/src/ab/Makefile.am b/cde/programs/dtappbuilder/src/ab/Makefile.am new file mode 100644 index 00000000..63b8c6b0 --- /dev/null +++ b/cde/programs/dtappbuilder/src/ab/Makefile.am @@ -0,0 +1,28 @@ +MAINTAINERCLEANFILES = Makefile.in + +# Since dtcodegen depends on libXm, libDtWidget, and other libs, +# it will not be built properly during make includes. +# So, when 'all' is made in this directory, redo make includes/depend. +# An imake hack no doubt, but it is necessary for now. + + +all:: generated_includes abdepend + +include "../ab.tmpl" +include "../ab.rules" + +bin_PROGRAMS = dtbuilder + +if BSD +UTILLIB = -lutil +endif + +dtbuilder_LDADD = ../libABil/libABil.a ../libABobjXm/libABobjXm.a \ + ../libABobj/libABobj.a ../libAButil/libAButil.a \ + $(LIBWIDGET) $(LIBTERM) $(LIBHELP) $(LIBSVC) \ + $(LIBTT) -lUil $(MRESOURCELIB) -lXm $(XTOOLLIB) ${X_LIB} \ + $(UTILLIB) -lm + +dtbuilder_CFLAGS = -DPIXMAP_WORKAROUND -I$(ABINCLUDES) + +dtbuilder_SOURCES = -- 2.25.1