wrcad / xictools

XicTools: Xic graphical editor, WRspice circuit simulator, and accessories. for electronic design.
http://wrcad.com
138 stars 40 forks source link

Modify 5 Makefile.in to help debug. Use $(MAKE) -C <dir> rather than (cd <dir> ; make) #22

Closed ElderDelp closed 1 month ago

ElderDelp commented 2 months ago

From c674e30ef512a227d689aeb98fc35d2336d603e2 Mon Sep 17 00:00:00 2001 From: Gary Delp gary.delp@slsmn.info Date: Mon, 27 May 2024 17:36:34 -0500 Subject: [PATCH] Change Makefile.in to use '$(MAKE) -C dir' rather than (cd dir ;make)

if one uses the pattern $(MAKE) -C dir then the output reflects the full flienames. This commit/patch changes the patterns

On branch elderdelp-recursive-makes modified: mozy/Makefile.in wrspice/Makefile.in wrspice/devlib/Makefile.in xic/Makefile.in xt_base/Makefile.in '''

mozy/Makefile.in | 6 ++-- wrspice/Makefile.in | 72 +++++++++++++++++++------------------- wrspice/devlib/Makefile.in | 8 ++--- xic/Makefile.in | 16 ++++----- xt_base/Makefile.in | 10 +++--- 5 files changed, 56 insertions(+), 56 deletions(-)

diff --git a/mozy/Makefile.in b/mozy/Makefile.in index 2b20e4c6..4fb2f259 100644 --- a/mozy/Makefile.in +++ b/mozy/Makefile.in @@ -150,7 +150,7 @@ depend:: done; \ fi @for a in $(SUBDIRS); do \

diff --git a/wrspice/Makefile.in b/wrspice/Makefile.in index 5890b6b6..d76d83ce 100644 --- a/wrspice/Makefile.in +++ b/wrspice/Makefile.in @@ -113,16 +113,16 @@ MMJCO = mmjco/mmjco all: cptest $(TARGETS) $(MMJCO) wdemo

cptest:

-#-------------------- +#######################################################################

The first two targets are for Windows, create wrspice with

everything in a DLL, so that we can link plugins against the DLL.

@@ -135,7 +135,7 @@ bin/wrspice.dll: bin/wrspice.o $(LOCAL_LIBS) $(MALLOC) @$(LINKCC) $(LSHFLAG) -o bin/wrspice.dll $(LFLAGS) bin/wrspice.o \ $(LOCAL_LIBS) $(LIBS) $(MALLOC) $(STDCLIB)

-#-------------------- +################# end of Windows special targets ######################

bin/$(NODLL_SPICE_PROG): bin/wrspice.o $(LOCAL_LIBS) $(MALLOC) @echo $@: dynamic link @@ -163,64 +163,64 @@ bin/printtoraw: bin/printtoraw.o $(BASE)/lib/miscutil.a $(STDCLIB) $(WINPTHREADFIX)

mmjco/mmjco::

@@ -274,9 +274,9 @@ CCFILES = bin/wrspice.cc bin/wrspiced.cc bin/multidec.cc bin/proc2mod.cc \ bin/printtoraw.cc

depend:

-#-------------------- -# The first two targets are for Windows, create xic with everything in -# a DLL, so that we can link plugins against the DLL. +######### The first two targets are for Windows ####################### +# Create xic with everything in a DLL, +# so that we can link plugins against the DLL.

bin/$(DLL_XIC_PROG): bin/main.cc bin/xic.dll $(CC) -o bin/xic bin/main.cc src/$(GRPREF)xic/resource.o -Lbin -lxic @@ -125,7 +125,7 @@ bin/xic.dll: bin/xic.o $(LOCAL_LIBS) $(MALLOC) @$(LINKCC) $(LSHFLAG) -o bin/xic.dll $(LFLAGS) bin/xic.o \ $(LOCAL_LIBS) $(LIBS) $(MALLOC) $(STDCLIB)

-#-------------------- +######## end Windows specific targets. ################################

bin/$(NODLL_XIC_PROG): bin/xic.o $(LOCAL_LIBS) $(MALLOC) $(OA_SUBDIR) -@echo $@: dynamic link; @@ -168,7 +168,7 @@ bin/wrdecode: bin/cryptmain.cc src/parser/parser.a $(BASE)/lib/miscutil.a $(LINKCC) $(CFLAGS) -o bin/wrdecode $(INCLUDE) bin/cryptmain.cc \ src/parser/parser.a $(BASE)/lib/miscutil.a $(STDCLIB) $(WINPTHREADFIX)

-bin/wrsetpass: bin/cryptmain.cc src/parser/parser.a $(BASE)/lib/miscutil.a +bin/wrsetpass: bin/cryptmain.cc src/parser/parser.a $(BASE)/lib/miscutil.a $(LINKCC) $(CFLAGS) -o bin/wrsetpass $(INCLUDE) -DENCODING -DSETPASS \ bin/cryptmain.cc src/parser/parser.a $(BASE)/lib/miscutil.a $(STDCLIB) \ $(WINPTHREADFIX) @@ -266,7 +266,7 @@ CCFILES = bin/xic.cc bin/sa-filetool.cc bin/cryptmain.cc

depend: @for a in include $(SUBDIRS) help startup plugins; do \

diff --git a/xt_base/Makefile.in b/xt_base/Makefile.in index 8eecd7c7..122ecdcf 100644 --- a/xt_base/Makefile.in +++ b/xt_base/Makefile.in @@ -29,27 +29,27 @@ SUBDIRS = \ $(MALLOC_DIR) \ $(REGEX_DIR)

-all: +all: @if [ ! -d lib ]; then \ mkdir lib; \ fi @for a in $(SUBDIRS); do \ if [ -d $$a ]; then \

ElderDelp commented 1 month ago

I'm Closing because I was able to produce a cleaner pr based on devel.