-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoracle.816.mak
101 lines (69 loc) · 3.56 KB
/
oracle.816.mak
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
90
91
92
93
94
95
96
97
98
99
100
CXXFLAGS=-O3
ORACLE_816=/opt/oracle/oradb1/
INCLUDEPATH=-I$(ORACLE_816)/rdbms/demo -I$(ORACLE_816)/rdbms/public -I$(ORACLE_816)/network/public -I$(ORACLE_816)/plsql/public
LIBPATH=-L$(ORACLE_816)/lib -L$(ORACLE_816)/network/lib
LIBS=-lclient8 -lclntsh -lcommon8 -lcore8 -lnls8
CFLAGS=-O3 -ansi -Wall -D_GNU_SOURCE -DDB_ORACLE -DVSHOP_PROVIDER -D__USE_XOPEN_EXTENDED -D_XOPEN_SOURCE $(INCLUDEPATH)
GCC=gcc
GPP=g++
all: vsl-compile mtl-compile vshop
vsl-compile: y.tab.o compiler.o oracle.816.mak
${GCC} ${CFLAGS} -static -o bin_816/vsl-compile scanner.c y.tab.o compiler.o -rdynamic -lfl
strip -s bin_816/vsl-compile
# mv vsl-compile bin/oracle
mtl-compile: y.tab.o compiler.o oracle.816.mak
${GCC} ${CFLAGS} -static -DMTLCOMPILE -o bin_816/mtl-compile scanner.c y.tab.o compiler.o -rdynamic -lfl
strip -s bin_816/mtl-compile
# mv mtl-compile bin/oracle
vshop: vshop.o julian.o net-func.o shop-func.o smtp_vshop.o vslanguage.h smtp_tcp_vshop.o parse.o inifile.o error.o hfct.o cgic.o oracle.o vsl-exec.o base-func.o table-func.o db.o skey.o priceutil.o
${GPP} ${CFLAGS} -rdynamic -o bin_816/vshop -lcrypt -ldl -lm julian.o net-func.o shop-func.o vshop.o smtp_vshop.o smtp_tcp_vshop.o parse.o inifile.o error.o hfct.o cgic.o vsl-exec.o base-func.o table-func.o db.o skey.o priceutil.o oracle.o $(LIBPATH) $(LIBS)
strip -s bin_816/vshop
# cp vshop intra
skey.o: skey.c skey.h skey_proto.h skey_definitions.h oracle.816.mak
${GCC} ${CFLAGS} -c skey.c
priceutil.o: priceutil.h priceutil.cc
${GPP} ${CFLAGS} -c priceutil.cc
smtp_vshop.o: smtp_vshop.c smtp.h smtp_network.h smtp_network_proto.h smtp_proto.h oracle.816.mak
${GCC} ${CFLAGS} -c smtp_vshop.c
smtp_tcp_vshop.o: smtp_tcp_vshop.c smtp.h smtp_network.h smtp_network_proto.h smtp_proto.h oracle.816.mak
${GCC} ${CFLAGS} -c smtp_tcp_vshop.c
parse.o: parse.h parse.c oracle.816.mak
${GPP} ${CFLAGS} -c parse.c
julian.o: julian.h julian.c oracle.816.mak
${GPP} ${CFLAGS} -c julian.c
inifile.o: inifile.h inifile.cpp oracle.816.mak
${GPP} ${CFLAGS} -c inifile.cpp
shop-func.o: shop-func.cpp shop-func.h oracle.816.mak
${GPP} ${CFLAGS} -c shop-func.cpp
net-func.o: net-func.cpp net-func.h oracle.816.mak
${GPP} ${CFLAGS} -c net-func.cpp
vshop.o: vshop.cpp vshop.h oracle.816.mak
${GPP} ${CFLAGS} -c vshop.cpp
cgic.o: cgic.cpp cgic.h oracle.816.mak
${GCC} ${CFLAGS} -c cgic.cpp
error.o: error.c error.h oracle.816.mak
${GPP} ${CFLAGS} -c error.c
hfct.o: hfct.c hfct.h oracle.816.mak
${GCC} ${CFLAGS} -c hfct.c
vsl-exec.o: vsl-exec.cpp vsl-exec.h m_code.h oracle.816.mak
${GPP} ${CFLAGS} -c vsl-exec.cpp
base-func.o: base-func.cpp vsl.h oracle.816.mak
${GPP} ${CFLAGS} -c base-func.cpp
table-func.o: table-func.cpp vsl.h db.h oracle.816.mak
${GPP} ${CFLAGS} -c table-func.cpp
db.o: db.cpp vsl.h db.h oracle.816.mak
${GPP} ${CFLAGS} -c db.cpp
scanner.o:scanner.c y.tab.h oracle.816.mak
${GCC} ${CFLAGS} -c scanner.c
y.tab.o:y.tab.c y.tab.h oracle.816.mak
${GCC} ${CFLAGS} -c y.tab.c
compiler.o:compiler.c compiler.h m_code.h oracle.816.mak
${GCC} ${CFLAGS} -c compiler.c
y.tab.c y.tab.h:vsl.y m_code.h oracle.816.mak
yacc -d vsl.y
oracle.o: oracle.cc oracle.816.mak
${GPP} $(CXXFLAGS) $(INCLUDEPATH) -c oracle.cc
oracle.c: oracle.pc
proc code=cpp sys_include=(/usr/include,/usr/include/g++) include=(/usr/include,/usr/include/linux,/usr/include/g++,/usr/include/g++/stl,/usr/include/g++/gen,/usr/local/lib.gnu/gcc-lib/i586-pc-linux-gnu/egcs-2.91.66/include) oracle.pc
clean:
rm -f *.o y.tab.h y.tab.c y.output oracle.c bin_816/vshop bin_816/install bin_816/getkey bin_816/vsl-compile bin_816/mtl-compile vsl.out *~ *.vsl.p gmon.out