-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
49 lines (36 loc) · 1.06 KB
/
Makefile
File metadata and controls
49 lines (36 loc) · 1.06 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
# **********************************************************************
#
# Copyright (c) 2003-2016 ZeroC, Inc. All rights reserved.
#
# **********************************************************************
top_srcdir = ../..
CLIENT = client
SERVER = server
TARGETS = $(CLIENT) $(SERVER) $(SESSION_SERVER)
SLICE_OBJS = Callback.o
COBJS = $(SLICE_OBJS) \
CallbackI.o \
Client.o
SOBJS = $(SLICE_OBJS) \
CallbackI.o \
Server.o
OBJS = $(COBJS) \
$(SOBJS)
include $(top_srcdir)/make/Make.rules
CPPFLAGS := -I. $(CPPFLAGS)
ifeq ($(BUILD_WITH_ICEE),yes)
GLACIER2_LIBS = -Wl,-B$(BUILD_DEMOS)
endif
GLACIER2_LIBS += -lGlacier2
$(CLIENT): $(COBJS)
rm -f $@
$(CXX) $(LDFLAGS) $(LDEXEFLAGS) -o $@ $(COBJS) $(GLACIER2_LIBS) $(LIBS)
ifeq ($(BUILD_DEMOS),static)
$(Q)$(STRIP) --strip-all --remove-section=.comment --remove-section=.note $(@)
endif
$(SERVER): $(SOBJS)
rm -f $@
$(CXX) $(LDFLAGS) $(LDEXEFLAGS) -o $@ $(SOBJS) $(LIBS)
ifeq ($(BUILD_DEMOS),static)
$(Q)$(STRIP) --strip-all --remove-section=.comment --remove-section=.note $(@)
endif