Menu

[r1477]: / advanced / tools / xml-rpc-api2cpp / Makefile  Maximize  Restore  History

Download this file

67 lines (47 with data), 1.3 kB

 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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
ifeq ($(SRCDIR),)
updir = $(shell echo $(dir $(1)) | sed 's/.$$//')
TOOLSDIR := $(call updir,$(CURDIR))
SRCDIR := $(call updir,$(TOOLSDIR))
BLDDIR := $(SRCDIR)
endif
SUBDIR := tools/xml-rpc-api2cpp
default: all
include $(BLDDIR)/Makefile.config
include $(SRCDIR)/tools/Makefile.common
INCLUDES = -I$(BLDDIR) -I$(BLDDIR)/include -I$(SRCDIR)/include
CXXFLAGS = $(INCLUDES) $(CXXFLAGS_COMMON) $(CFLAGS_PERSONAL) $(CADD)
LDFLAGS = $(LADD)
LDLIBS = -L$(BLDDIR)/src/cpp -lxmlrpc_cpp -lxmlrpc_server $(CLIENT_LDLIBS)
PROGS :=
ifeq ($(MUST_BUILD_CLIENT),yes)
PROGS += xml-rpc-api2cpp
endif
all: $(PROGS)
OBJECTS = \
xml-rpc-api2cpp.o \
DataType.o \
XmlRpcFunction.o \
XmlRpcClass.o \
SystemProxy.o \
xml-rpc-api2cpp: \
$(OBJECTS) \
$(LIBXMLRPC_CPP) \
$(LIBXMLRPC_CLIENT) \
$(LIBXMLRPC_SERVER) \
$(LIBXMLRPC) \
$(LIBXMLRPC_XML) \
$(LIBXMLRPC_UTIL)
$(CXXLD) -o $@ $(LDFLAGS) $(OBJECTS) $(LDLIBS)
%.o:%.cpp
$(CXX) -c $(CXXFLAGS) $<
# This Makefile.config dependency makes sure the symlinks get built before
# this make file is used for anything.
$(BLDDIR)/Makefile.config: srcdir
include Makefile.depend
.PHONY: clean
clean: clean-common
rm -f $(PROGS)
.PHONY: distclean
distclean: clean distclean-common
.PHONY: dep
dep: dep-common
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.