]> git.proxmox.com Git - ceph.git/blob - ceph/src/jaegertracing/opentelemetry-cpp/third_party/prometheus-cpp/3rdparty/civetweb/examples/rest/Makefile
e4d44aaea10fff2d9e22bce18fc745e0c0558675
[ceph.git] / ceph / src / jaegertracing / opentelemetry-cpp / third_party / prometheus-cpp / 3rdparty / civetweb / examples / rest / Makefile
1 #
2 # Copyright (c) 2018 CivetWeb Developers
3 # Copyright (c) 2013 No Face Press, LLC
4 # License http://opensource.org/licenses/mit-license.php MIT License
5 #
6
7 #This makefile is used to test the other Makefiles
8
9
10 PROG = rest_server
11 SRC = rest.c cJSON/cJSON.c cJSON/cJSON_Utils.c
12
13 TOP = ../..
14 CIVETWEB_LIB = libcivetweb.a
15
16 CFLAGS = -I$(TOP)/include -IcJSON $(COPT) -DNO_FILES
17 LIBS = -lpthread
18
19 include $(TOP)/resources/Makefile.in-os
20
21 ifeq ($(TARGET_OS),LINUX)
22 LIBS += -ldl
23 endif
24
25 all: $(PROG)
26
27 $(PROG): $(CIVETWEB_LIB) $(SRC)
28 $(CC) -o $@ $(CFLAGS) $(LDFLAGS) $(SRC) $(CIVETWEB_LIB) $(LIBS) -lcrypto -lssl -DUSE_SSL_DH=1
29
30 $(CIVETWEB_LIB):
31 $(MAKE) -C $(TOP) WITH_IPV6=1 WITH_WEBSOCKET=1 COPT='-DNO_SSL_DL=1' clean lib
32 cp $(TOP)/$(CIVETWEB_LIB) .
33
34 clean:
35 rm -f $(CIVETWEB_LIB) $(PROG)
36
37 .PHONY: all clean
38