source: SimpleSample/trunk/SimpleSampleOpaqueRPC/Makefile@ 35

Last change on this file since 35 was 35, checked in by okuma-top, 12 years ago

update for Linux (-lpthread)

File size: 1.5 KB
Line 
1# 変数 #_MVAR_#
2TARGET = SimpleSample.exe
3TIMESTAMP = tecsgen.timestamp
4TECSGEN_EXE = tecsgen.exe
5# Please use below instead of above if you make SimpleSample with non-exerb version of tecsgen
6# TECSGEN_EXE = tecsgen
7TECSPATHR = ../../tecsgen/tecs
8BASE_DIR = .
9CC = gcc
10INCLUDE = -I $(BASE_DIR)/. -I $(TECSPATHR) -I $(TECSPATHR)/../test/cygwin -I $(TECSPATHR)/rpc -I $(GEN_DIR)
11CFLAGS = $(INCLUDE) -I $(BASE_DIR)/src -I $(GEN_DIR) -D "Inline=static inline"
12LD = gcc
13LDFLAGS = -lpthread
14GEN_DIR = $(BASE_DIR)/gen
15SRC_DIR = $(BASE_DIR)/src
16_TECS_OBJ_DIR = $(GEN_DIR)/
17# _TECS_OBJ_DIR # should be end with '/'
18
19vpath %.c $(SRC_DIR) $(GEN_DIR) $(TECSPATHR) $(TECSPATHR)/rpc $(TECSPATHR)/../test/cygwin
20vpath %.h $(SRC_DIR) $(GEN_DIR) $(TECSPATHR) $(TECSPATHR)/rpc $(TECSPATHR)/../test/cygwin
21
22# OTHER_OBJS = # Add objects out of tecs care.
23OTHER_OBJS = $(_TECS_OBJ_DIR)vasyslog.o
24
25# ルール #_MRUL_#
26allall: tecs
27 make all # in order to include generated Makefile.tecsgen & Makefile.depend
28
29all : sub_regions
30
31
32# depend を include #_MDEP_#
33-include $(GEN_DIR)/Makefile.tecsgen
34
35sub_regions:$(TIMESTAMP)
36 cd rSample; make all
37 cd rSimple; make all
38
39clean :
40 cd rSample; make clean
41 cd rSimple; make clean
42 rm -f $(CELLTYPE_COBJS) $(TECSGEN_COBJS) $(PLUGIN_COBJS) $(OTHER_OBJS) $(TARGET) $(TIMESTAMP)
43 rm -rf $(GEN_DIR)
44
45tecs : $(TIMESTAMP)
46
47$(TIMESTAMP) : $(TECS_IMPORTS)
48 $(TECSGEN_EXE) $(INCLUDE) -k euc -I src SimpleSample.cdl
49 touch $(TIMESTAMP)
50
51# generic target for objs
52$(_TECS_OBJ_DIR)%.o : %.c
53 $(CC) -c $(CFLAGS) -o $@ $<
54
Note: See TracBrowser for help on using the repository browser.