# 変数 #_MVAR_# TARGET = SimpleSample-rSimple.exe TIMESTAMP = tecsgen.timestamp ifeq ($(OS),Windows_NT) TECSGEN_EXE = tecsgen.exe else # use below if you want to use non-exerb version of tecsgen. TECSGEN_EXE = tecsgen endif BASE_DIR = .. CC = gcc INCLUDE = -I $(BASE_DIR)/. -I $(TECSPATH) -I $(TECSPATH)/../test/cygwin -I $(TECSPATH)/rpc -I $(GEN_DIR) CFLAGS = $(INCLUDE) -I $(BASE_DIR)/src -I $(GEN_DIR) -D "Inline=static inline" -D RPC_DEBUG LD = gcc LDFLAGS = -lpthread GEN_DIR = $(BASE_DIR)/gen/rSimple SRC_DIR = $(BASE_DIR)/src _TECS_OBJ_DIR = $(GEN_DIR)/ # _TECS_OBJ_DIR # should be end with '/' vpath %.c $(SRC_DIR) $(GEN_DIR) $(TECSPATH) $(TECSPATH)/rpc $(TECSPATH)/../test/cygwin vpath %.h $(SRC_DIR) $(GEN_DIR) $(TECSPATH) $(TECSPATH)/rpc $(TECSPATH)/../test/cygwin OTHER_OBJS = # Add objects out of tecs care. # OTHER_OBJS = $(_TECS_OBJ_DIR)vasyslog.o # ルール #_MRUL_# allall: tecs make all # in order to include generated Makefile.tecsgen & Makefile.depend all : $(TARGET) # depend を include #_MDEP_# -include $(GEN_DIR)/Makefile.tecsgen -include $(GEN_DIR)/Makefile.depend $(TARGET) : $(CELLTYPE_COBJS) $(TECSGEN_COBJS) $(PLUGIN_COBJS) $(OTHER_OBJS) $(LD) -o $(TARGET) $(TECSGEN_COBJS) $(CELLTYPE_COBJS) $(PLUGIN_COBJS) $(OTHER_OBJS) $(LDFLAGS) clean : rm -f $(CELLTYPE_COBJS) $(TECSGEN_COBJS) $(PLUGIN_COBJS) $(OTHER_OBJS) $(TARGET) tecs: @echo "run 'make tecs' in root region" $(_TECS_OBJ_DIR)tTask.o : tTask.c $(CC) -c $(CFLAGS) -o $@ $< $(_TECS_OBJ_DIR)tSemaphore.o : tSemaphore.c $(CC) -c $(CFLAGS) -o $@ $< $(_TECS_OBJ_DIR)tSysLog.o : tSysLog.c $(CC) -c $(CFLAGS) -o $@ $< $(_TECS_OBJ_DIR)tNBOTDR.o : tNBOTDR.c $(CC) -c $(CFLAGS) -o $@ $< $(_TECS_OBJ_DIR)tSocketClient.o : tSocketClient.c $(CC) -c $(CFLAGS) -o $@ $< $(_TECS_OBJ_DIR)tSimple.o : tSimple.c $(CC) -c $(CFLAGS) -o $@ $< $(_TECS_OBJ_DIR)tTaskMain.o : tTaskMain.c $(CC) -c $(CFLAGS) -o $@ $< $(_TECS_OBJ_DIR)tOpaqueMarshaler_sSample.o : tOpaqueMarshaler_sSample.c $(CC) -c $(CFLAGS) -o $@ $<