Skip to content

Commit

Permalink
BUG: update makelib
Browse files Browse the repository at this point in the history
Add makelib.darwin to the list of updated files.
  • Loading branch information
aburrell committed Oct 2, 2024
1 parent f460d8c commit de82188
Show file tree
Hide file tree
Showing 3 changed files with 62 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/test_profiles/base.bash.darwin
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export NETCDF_PATH="/opt/homebrew/"

# pathname for the CDF software

export CDF_PATH="$HOME/Applications/cdf/cdf39_0-dist/"
export CDF_PATH="/usr/local/cdf/"

# SVG library

Expand Down
60 changes: 60 additions & 0 deletions .github/test_profiles/makelib.darwin
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
# Makefile for the libraries
# =======================================
# by R.J.Barnes
#
#

# Linux (GCC)
#

CFLAGS = -Wall -pedantic -O3 -D_GNU_SOURCE -D_DARWIN -I/opt/homebrew/include $(INCLUDE)
SUF=so

VSTR=$(shell get.version ${CURDIR}/..)

# By default statically link the all programs

.c.o:
$(CC) $(CFLAGS) -c $<

ifdef OUTPUT

$(OUTPUT): version hdr $(OBJS)
mkdir -p ${DSTPATH}
libtool -static -o $(DSTPATH)/lib$(OUTPUT).$(VSTR).a $(OBJS)
gcc -Wl,-install_name,@rpath/lib$(OUTPUT).$(VSTR).dylib \
-dynamiclib -all_load -flat_namespace -undefined suppress \
-single_module -o $(DSTPATH)/lib$(OUTPUT).$(VSTR).dylib \
$(DSTPATH)/lib$(OUTPUT).$(VSTR).a \
-L$(LIBPATH) $(SLIB)
cd $(DSTPATH); ln -sf lib$(OUTPUT).$(VSTR).a \
lib$(OUTPUT).$(LINK).a
cd $(DSTPATH); ln -sf lib$(OUTPUT).$(VSTR).dylib \
lib$(OUTPUT).$(LINK).dylib
else
dummy: hdr

endif

hdr:
make.hdr $(CURDIR)/../include ${INC}


version:
make.version $(CURDIR)/..



clean:
rm -f *.o











1 change: 1 addition & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ jobs:
export RSTPATH=$(pwd)
cp .github/test_profiles/profile.bash.darwin .profile.bash
cp .github/test_profiles/base.bash.darwin .profile/base.bash
cp .github/test_profiles/makelib.darwin build/make/makelib.darwin
source .profile.bash
echo $SYSTEM
echo $OSTYPE
Expand Down

0 comments on commit de82188

Please sign in to comment.