3 ARCH := $(shell uname -m | sed 's/i.86/i386/')
5 # for f27: removing -Wlong-long
6 X64FLAGS = -Wformat -Wpointer-arith
8 # for f27: getting rid of most warnings
9 CFLAGS = -Dlinux -Wno-write-strings
11 # for f27 : remove support for SSL - hopefully temporary
12 # the changes to openssl 1.1 look a bit awkward though
13 ifneq "$(FCDISTRO)" "$(filter $(FCDISTRO),f27)"
20 FLAGS = $(CFLAGS) $(X64FLAGS) $(SSL)
22 FLAGS = $(CFLAGS) $(SSL)
25 #CFLAGS = -Dlinux -Wall -Wno-deprecated $(SSL)
30 INCLUDE = -I$(GSOAP_PATH) -I$(INC_PATH) -I$(GSOAP_CODE)
31 SRCS = $(GSOAP_CODE)/soapClient.cpp $(GSOAP_CODE)/soapC.cpp $(GSOAP_PATH)/stdsoap2.cpp $(GSOAP_PATH)/httpDigest.cpp $(GSOAP_PATH)/digcalc.cpp RemoteControlSample.cpp
32 OBJS = $(SRCS:.cpp=.o) Utils.o
34 APPNAME = remoteControl
35 WSDL2H = $(GSOAP_PATH)/wsdl2h
36 SOAPCPP = $(GSOAP_PATH)/soapcpp2
40 $(LIBTOOL) --mode=link $(CC) $(FLAGS) $(INCLUDE) -o $(APPNAME) $(OBJS) $(LIBS)
42 Utils.o: $(SRC_PATH)/Utils.cpp
43 $(CC) $(CFLAGS) $(INCLUDE) -c $(SRC_PATH)/Utils.cpp -o Utils.o
46 $(CC) $(FLAGS) $(INCLUDE) -c $< -o $@
49 rm -f $(OBJS) $(APPNAME) *~