"Fossies" - the Fresh Open Source Software Archive

Member "muscle/html/muscle-by-example/examples/thread/Makefile" (8 Jun 2019, 849 Bytes) of package /linux/privat/muscle7.30.zip:


As a special service "Fossies" has tried to format the requested text file into HTML format (style: standard) with prefixed line numbers. Alternatively you can here view or download the uninterpreted source code file.

    1 EXECUTABLES = \
    2 	example_1_basic_usage       \
    3 	example_2_dumb_server_with_thread
    4 
    5 MUSCLE_DIR = ../../../..
    6 MUSCLE_LIB = $(MUSCLE_DIR)/server/libmuscle.a
    7 
    8 CXXFLAGS   = -I$(MUSCLE_DIR) -std=c++11 -O3 -DMUSCLE_ENABLE_ZLIB_ENCODING
    9 LFLAGS    += -L$(MUSCLE_DIR)/server
   10 OBJS       = $(EXECUTABLES:=.o)
   11 
   12 ifeq ($(OSTYPE),)
   13   OSTYPE = $(strip $(shell uname))
   14 endif
   15 
   16 ifeq ($(OSTYPE),Darwin) 
   17    LIBS += -framework IOKit -framework Carbon -framework SystemConfiguration
   18    CXXFLAGS += -stdlib=libc++
   19 endif 
   20 
   21 ifeq ($(OSTYPE),linux) 
   22    LIBS += -lutil -pthread
   23 endif 
   24 ifeq ($(OSTYPE),Linux) 
   25    LIBS += -lutil -pthread
   26 endif 
   27 
   28 all:  $(MUSCLE_LIB) $(EXECUTABLES)
   29 
   30 $(MUSCLE_LIB):
   31 	cd $(MUSCLE_DIR)/server && make
   32 
   33 $(EXECUTABLES) : % : $(MUSCLE_LIB) $(OBJS)
   34 	$(CXX) $(CXXFLAGS) $(LFLAGS) -o $@ $@.cpp $(MUSCLE_LIB) $(LIBS)
   35 
   36 clean:
   37 	rm -f *.o *.xSYM $(EXECUTABLES)