-
Notifications
You must be signed in to change notification settings - Fork 4
/
Makefile
32 lines (28 loc) · 880 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
# Automatically configure URL support if libcurl is present
# Test for curl-config command and add build options if found
# Prefer /usr/bin/curl-config over any other curl-config
ifndef WITHOUTURL
ifneq (,$(wildcard /usr/bin/curl-config))
CURL_CONFIG := /usr/bin/curl-config
else ifneq (,$(shell command -v curl-config))
CURL_CONFIG := $(shell command -v curl-config)
endif
endif
ifneq (,$(CURL_CONFIG))
export LM_CURL_VERSION=$(shell $(CURL_CONFIG) --version)
export CFLAGS:=$(CFLAGS) -DLIBMSEED_URL
export LDFLAGS:=$(LDFLAGS) $(shell $(CURL_CONFIG) --libs)
$(info Configured with $(LM_CURL_VERSION))
endif
.PHONY: all clean
all clean: libmseed
$(MAKE) -C src $@
.PHONY: libmseed
libmseed:
$(MAKE) -C $@ $(MAKECMDGOALS)
.PHONY: install
install:
@echo
@echo "No install method"
@echo "Copy the binary and documentation to desired location"
@echo