Skip to content

Commit

Permalink
Finding libcdf via ENV vars
Browse files Browse the repository at this point in the history
  • Loading branch information
cpiker committed Feb 26, 2024
1 parent 10f818c commit e0e3f4a
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions buildfiles/Linux.mak
Original file line number Diff line number Diff line change
Expand Up @@ -167,9 +167,13 @@ $(BD)/das2_psd:$(BD)/das2_psd.o $(BD)/send.o $(BD)/$(TARG).a
$(CC) $(CFLAGS) $^ $(LFLAGS) -o $@

cdf:$(BD)/das3_cdf

$(BD)/das3_cdf:$(BD)/das3_cdf.o
$(CC) $(CFLAGS) -o $@ $< $(BD)/$(TARG).a /usr/local/lib/libcdf.a $(LFLAGS)
@echo "An example CDF_INC value would be: /usr/local/include"
@echo "An example CDF_LIB value would be: /usr/local/lib/libcdf.a"
@if [ "$(CDF_INC)" = "" ] ; then echo "CDF_INC not set"; exit 3; fi
@if [ "$(CDF_LIB)" = "" ] ; then echo "CDF_LIB not set"; exit 3; fi
$(CC) $(CFLAGS) -I$(CDF_INC) -o $@ $< $(BD)/$(TARG).a $(CDF_LIB) $(LFLAGS)

# Run tests
test: $(BD) $(BD)/$(TARG).a $(BUILD_TEST_PROGS) $(BULID_UTIL_PROGS)
Expand Down

0 comments on commit e0e3f4a

Please sign in to comment.