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_#
|
---|
2 | TARGET = SimpleSample.exe
|
---|
3 | TIMESTAMP = tecsgen.timestamp
|
---|
4 | TECSGEN_EXE = tecsgen.exe
|
---|
5 | # Please use below instead of above if you make SimpleSample with non-exerb version of tecsgen
|
---|
6 | # TECSGEN_EXE = tecsgen
|
---|
7 | TECSPATHR = ../../tecsgen/tecs
|
---|
8 | BASE_DIR = .
|
---|
9 | CC = gcc
|
---|
10 | INCLUDE = -I $(BASE_DIR)/. -I $(TECSPATHR) -I $(TECSPATHR)/../test/cygwin -I $(TECSPATHR)/rpc -I $(GEN_DIR)
|
---|
11 | CFLAGS = $(INCLUDE) -I $(BASE_DIR)/src -I $(GEN_DIR) -D "Inline=static inline"
|
---|
12 | LD = gcc
|
---|
13 | LDFLAGS = -lpthread
|
---|
14 | GEN_DIR = $(BASE_DIR)/gen
|
---|
15 | SRC_DIR = $(BASE_DIR)/src
|
---|
16 | _TECS_OBJ_DIR = $(GEN_DIR)/
|
---|
17 | # _TECS_OBJ_DIR # should be end with '/'
|
---|
18 |
|
---|
19 | vpath %.c $(SRC_DIR) $(GEN_DIR) $(TECSPATHR) $(TECSPATHR)/rpc $(TECSPATHR)/../test/cygwin
|
---|
20 | vpath %.h $(SRC_DIR) $(GEN_DIR) $(TECSPATHR) $(TECSPATHR)/rpc $(TECSPATHR)/../test/cygwin
|
---|
21 |
|
---|
22 | # OTHER_OBJS = # Add objects out of tecs care.
|
---|
23 | OTHER_OBJS = $(_TECS_OBJ_DIR)vasyslog.o
|
---|
24 |
|
---|
25 | # ルール #_MRUL_#
|
---|
26 | allall: tecs
|
---|
27 | make all # in order to include generated Makefile.tecsgen & Makefile.depend
|
---|
28 |
|
---|
29 | all : sub_regions
|
---|
30 |
|
---|
31 |
|
---|
32 | # depend を include #_MDEP_#
|
---|
33 | -include $(GEN_DIR)/Makefile.tecsgen
|
---|
34 |
|
---|
35 | sub_regions:$(TIMESTAMP)
|
---|
36 | cd rSample; make all
|
---|
37 | cd rSimple; make all
|
---|
38 |
|
---|
39 | clean :
|
---|
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 |
|
---|
45 | tecs : $(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.