source: SimpleSample/trunk/SimpleSampleOpaqueRPC/Makefile@ 30

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

TECS Simple Sample

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