]> git.proxmox.com Git - ceph.git/blob - ceph/src/civetweb/examples/_obsolete/chat/Makefile
buildsys: switch source download to quincy
[ceph.git] / ceph / src / civetweb / examples / _obsolete / chat / Makefile
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
9 PROG = chat
10 SRC = chat.c
11
12 TOP = ../..
13 CIVETWEB_LIB = libcivetweb.a
14 SSL_CERT = ssl_cert.pem
15
16 CFLAGS = -I$(TOP)/include $(COPT)
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) $(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
37 clean:
38 rm -f $(CIVETWEB_LIB) $(PROG) $(SSL_CERT)
39
40 .PHONY: all clean