]> git.proxmox.com Git - ceph.git/blame - ceph/src/civetweb/examples/_obsolete/chat/Makefile
buildsys: switch source download to quincy
[ceph.git] / ceph / src / civetweb / examples / _obsolete / chat / Makefile
CommitLineData
7c673cae
FG
1#
2# Copyright (c) 2013 No Face Press, LLC
3# License http://opensource.org/licenses/mit-license.php MIT License
4#
5
6#This makefile is used to test the other Makefiles
7
8
9PROG = chat
10SRC = chat.c
11
12TOP = ../..
13CIVETWEB_LIB = libcivetweb.a
14SSL_CERT = ssl_cert.pem
15
16CFLAGS = -I$(TOP)/include $(COPT)
17LIBS = -lpthread
18
19include $(TOP)/resources/Makefile.in-os
20
21ifeq ($(TARGET_OS),LINUX)
22 LIBS += -ldl
23endif
24
25all: $(PROG) $(SSL_CERT)
26
27$(PROG): $(CIVETWEB_LIB) $(SRC)
28 $(CC) -o $@ $(CFLAGS) $(LDFLAGS) $(SRC) $(CIVETWEB_LIB) $(LIBS)
29
30$(CIVETWEB_LIB):
31 $(MAKE) -C $(TOP) clean lib
32 cp $(TOP)/$(CIVETWEB_LIB) .
33
34$(SSL_CERT):
35 cp $(TOP)/resources/$(SSL_CERT) .
36
37clean:
38 rm -f $(CIVETWEB_LIB) $(PROG) $(SSL_CERT)
39
40.PHONY: all clean