blob: cca823cce70bfe2f8aabb76e3a40914c965325fc (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
|
# makefile for tolua executable
TOLUA=../..
TOLUAEXE = tolua
include $(TOLUA)/config
LIBS = -ltolua -llua
EXE = tmodule tnamespace tclass tpeer tinheritance tconstant tvariable tfunction tarray tdirective tenum tvararg
all: $(EXE)
./tmodule; ./tnamespace; ./tclass; ./tpeer; ./tinheritance; ./tconstant; ./tvariable; ./tfunction; ./tarray; ./tdirective; ./tfunction; ./tenum; ./tvararg
tarray: tarray.o tarraybind.o
$(CC) $(CFLAGS) -o $@ tarray.o tarraybind.o $(TLIB) $(LIB) $(LIBS)
tarraybind.c: tarray.pkg
$(TOLUA)/bin/$(TOLUAEXE) -o $@ $<
tvariable: tvariable.o tvariablebind.o
$(CC) $(CFLAGS) -o $@ tvariable.o tvariablebind.o $(TLIB) $(LIB) $(LIBS)
tvariablebind.c: tvariable.pkg
$(TOLUA)/bin/$(TOLUAEXE) -o $@ $<
tmodule: tmodule.o tmodulebind.o
$(CC) $(CFLAGS) -o $@ tmodule.o tmodulebind.o $(TLIB) $(LIB) $(LIBS)
tmodulebind.c: tmodule.pkg
$(TOLUA)/bin/$(TOLUAEXE) -o $@ $<
tnamespace: tnamespace.o tnamespacebind.o
$(CCPP) $(CFLAGS) -o $@ tnamespace.o tnamespacebind.o $(TLIB) $(LIB) $(LIBS)
tnamespacebind.cpp: tnamespace.pkg
$(TOLUA)/bin/$(TOLUAEXE) -o $@ $<
tdirective: tdirectivebind.o
$(CC) $(CFLAGS) -o $@ tdirectivebind.o $(TLIB) $(LIB) $(LIBS)
tdirectivebind.c: tdirective.pkg
$(TOLUA)/bin/$(TOLUAEXE) -o $@ $<
tfunction: tfunction.o tfunctionbind.o
$(CCPP) $(CPPFLAGS) -o $@ tfunction.o tfunctionbind.o $(TLIB) $(LIB) $(LIBS)
tfunctionbind.cpp: tfunction.pkg
$(TOLUA)/bin/$(TOLUAEXE) -o $@ $<
tconstant: tconstant.o tconstantbind.o
$(CCPP) $(CPPFLAGS) -o $@ tconstant.o tconstantbind.o $(TLIB) $(LIB) $(LIBS)
tconstantbind.cpp: tconstant.pkg
$(TOLUA)/bin/$(TOLUAEXE) -o $@ $<
tclass: tclass.o tclassbind.o
$(CCPP) $(CPPFLAGS) -o $@ tclass.o tclassbind.o $(TLIB) $(LIB) $(LIBS)
tclassbind.cpp: tclass.pkg
$(TOLUA)/bin/$(TOLUAEXE) -o $@ $<
tpeer: tpeer.o tpeerbind.o
$(CCPP) $(CPPFLAGS) -o $@ tpeer.o tpeerbind.o $(TLIB) $(LIB) $(LIBS)
tpeerbind.cpp: tpeer.pkg
$(TOLUA)/bin/$(TOLUAEXE) -o $@ $<
tinheritance: tinheritance.o tinheritancebind.o
$(CCPP) $(CPPFLAGS) -o $@ tinheritance.o tinheritancebind.o $(TLIB) $(LIB) $(LIBS)
tinheritancebind.cpp: tinheritance.pkg
$(TOLUA)/bin/$(TOLUAEXE) -o $@ $<
tenum: tenum.o tenumbind.o
$(CC) $(CPPFLAGS) -o $@ tenum.o tenumbind.o $(TLIB) $(LIB) $(LIBS)
tenumbind.c: tenum.pkg
$(TOLUA)/bin/$(TOLUAEXE) -o $@ $<
tvararg: tvararg.o tvarargbind.o
$(CCPP) $(CPPFLAGS) -o $@ tvararg.o tvarargbind.o $(TLIB) $(LIB) $(LIBS)
tvarargbind.cpp: tvararg.pkg
$(TOLUA)/bin/$(TOLUAEXE) -o $@ $<
.cpp.o:
$(CCPP) -c $(CPPFLAGS) -o $@ $<
.pkg.cpp:
$(TOLUA)/bin/$(TOLUAEXE) -o $@ $<
clean:
rm -f t*bind.*
rm -f *.o
klean:
rm -f $(EXE)
|