source: HelloMruby/trunk/Makefile@ 77

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

HelloMruby 1st version

File size: 3.6 KB
Line 
1# このファイルは tecsgen により自動生成されました
2# Makefile.temp は gen の一つ上のディレクトリに移して使用します
3# % mv Makefile.temp Makefile
4#
5# clean のデフォルト動作は $(GEN_DIR)/Makefile.* を削除します
6#
7# このファイルは GNU make で gcc を用い POSIX 環境で動作するモジュールをビルドするのに適切なように生成されています
8# vpath, CFLAGS, OTHER_OBJS などを調整する必
9要があるかもしれません
10# 他の環境やターゲットの場合、このファイルをå…
11ƒã«å¤‰æ›´ã™ã‚‹å¿…
12要があります
13
14# 変数 #_MVAR_#
15# fixed variable (unchangeable by config or plugin)
16TARGET_BASE = HelloMruby
17BASE_DIR = .
18GEN_DIR = $(BASE_DIR)/gen
19INCLUDES = -I $(BASE_DIR)/. -I $(TECSPATH)/../test/cygwin -I $(TECSPATH) -I $(TECSPATH)/mruby -I $(TECSPATH)/posix -I $(TECSPATH)/rpc -I $(MRUBYPATH)/include -I $(GEN_DIR)
20DEFINES =
21
22# end of fixed variable (unchangeable by config or plugin)
23#default C Compiler
24CC = gcc
25
26#default C Compiler options
27CFLAGS = $(INCLUDES) $(DEFINES) -D "Inline=static inline"
28
29#default Liknker
30LD = gcc
31
32#default Liknker Options
33LDFLAGS = -lmruby -L ../lib
34
35#CHANGE this into suitable path
36MRUBYPATH = ..
37
38#default srource directory
39SRC_DIR = $(BASE_DIR)/src
40
41#default target name
42TARGET = $(TARGET_BASE).exe
43
44#default TECS generator
45TECSGEN_EXE = tecsgen
46# uncomment below if you don't have Ruby. work on only Windows
47# TECSGEN_EXE = tecsgen.exe
48
49#Time Stamp
50TIMESTAMP = tecsgen.timestamp
51
52#default relocatable object (.o) directory
53_TECS_OBJ_DIR = $(GEN_DIR)/
54
55
56
57# Pre-tecsgen target
58PRE_TECSGEN_TARGET =
59
60# Post-tecsgen target
61POST_TECSGEN_TARGET =
62
63# vpath for C sources and headers
64vpath %.c $(SRC_DIR) $(GEN_DIR) $(TECSPATH)/../test/cygwin $(TECSPATH) $(TECSPATH)/mruby $(TECSPATH)/posix $(TECSPATH)/rpc $(MRUBYPATH)/include
65vpath %.h $(SRC_DIR) $(GEN_DIR) $(TECSPATH)/../test/cygwin $(TECSPATH) $(TECSPATH)/mruby $(TECSPATH)/posix $(TECSPATH)/rpc $(MRUBYPATH)/include
66
67# Other objects (out of tecsgen)
68OTHER_OBJS = # Add objects out of tecs care.
69# OTHER_OBJS = $(_TECS_OBJ_DIR)vasyslog.o
70# ルール #_MRUL_#
71allall: tecs
72 make all # in order to include generated Makefile.tecsgen & Makefile.depend
73
74all : $(TARGET)
75
76
77# depend を include #_MDEP_#
78-include $(GEN_DIR)/Makefile.tecsgen
79-include $(GEN_DIR)/Makefile.depend
80
81$(TARGET) : $(TIMESTAMP) $(CELLTYPE_COBJS) $(TECSGEN_COBJS) $(PLUGIN_COBJS) $(OTHER_OBJS)
82 $(LD) -o $(TARGET) $(TECSGEN_COBJS) $(CELLTYPE_COBJS) $(PLUGIN_COBJS) $(OTHER_OBJS) $(LDFLAGS)
83clean :
84 rm -f $(CELLTYPE_COBJS) $(TECSGEN_COBJS) $(PLUGIN_COBJS) $(OTHER_OBJS) $(TARGET) $(TIMESTAMP)
85 rm -rf $(GEN_DIR)
86
87tecs : $(PRE_TECSGEN_TARGET) $(TIMESTAMP) $(POST_TECSGEN_TARGET)
88
89$(TIMESTAMP) : $(TECS_IMPORTS)
90 $(TECSGEN_EXE) -I $(TECSPATH)/../test/cygwin HelloMruby.cdl
91 touch $(TIMESTAMP)
92
93# generic target for objs
94$(_TECS_OBJ_DIR)%.o : %.c
95 $(CC) -c $(CFLAGS) -o $@ $<
96
97$(_TECS_OBJ_DIR)tTask.o : tTask.c
98 $(CC) -c $(CFLAGS) -o $@ $<
99
100$(_TECS_OBJ_DIR)tTaskMain2PosixMain.o : tTaskMain2PosixMain.c
101 $(CC) -c $(CFLAGS) -o $@ $<
102
103$(_TECS_OBJ_DIR)tBuddy.o : tBuddy.c
104 $(CC) -c $(CFLAGS) -o $@ $<
105
106$(_TECS_OBJ_DIR)nMruby_tTECSInitializer.o : nMruby_tTECSInitializer.c
107 $(CC) -c $(CFLAGS) -o $@ $<
108
109$(_TECS_OBJ_DIR)nMruby_tCharPointer.o : nMruby_tCharPointer.c
110 $(CC) -c $(CFLAGS) -o $@ $<
111
112$(_TECS_OBJ_DIR)nMruby_tMrubyProc.o : nMruby_tMrubyProc.c
113 $(CC) -c $(CFLAGS) -o $@ $<
114
115$(_TECS_OBJ_DIR)nMruby_tsHello.o : nMruby_tsHello.c
116 $(CC) -c $(CFLAGS) -o $@ $<
117
118$(_TECS_OBJ_DIR)nMruby_tsHello_Initializer.o : nMruby_tsHello_Initializer.c
119 $(CC) -c $(CFLAGS) -o $@ $<
120
Note: See TracBrowser for help on using the repository browser.