Wednesday, September 26, 2007

Setting Compile Pro*c

1. Install Visual Studio C++ (Mikocok product)

2. Ada 2 bagian di dalam compile pro*c :
1. Untuk pro*c proses
2. Untuk pro*c printing

3. Dikarenakan compile pro*c ini dipastikan kita melakukan modify maka,sebaiknya dipisahkan antara folder standard aldata dan perubahan kita (specific)
Contoh ini menggunakan folder C:\GOLD\Development\Apollo\pc_source

/pc_source
standard
exe
inc
lib
makefile
patch-level
pc

specif
exe
inc
lib
makefile
patch-level
pc

4. buka folder makefile

5. modify file envnt.bat
Ubah spt contoh berikut ini
set BIN=C:\GOLD\develo~1\apollo\pc_sou~1\standard\exe
set MSDevDir=C:\Progra~1\micros~3\Common
set MSVCPP_HOME=C:\Progra~1\micros~3\Vc98
set ORACLE_HOME=C:\oracle\product\10.2.0\db_1
set PATH=%PATH%;%MSDevDir%\bin;%MSVCPP_HOME%\bin\;%MSDevDir%\IDE
set include=%MSVCPP_HOME%\include;%MSVCPP_HOME%\atlmfc\include;%MSVCPP_HOME%\include;
set lib=%MSVCPP_HOME%\lib;%lib%

Perhatikan benar-benar setting diatas.

6. modify file makent.lst
Ubah spt contoh berikut ini

ORACLE_HOME=C:\oracle\product\10.2.0\db_1
BIN = C:\GOLD\Develo~1\Apollo\pc_sou~1\standard\exe
INC = C:\GOLD\Develo~1\Apollo\pc_sou~1\standard\inc
LIB = C:\GOLD\Develo~1\Apollo\pc_sou~1\standard\lib
OBJ = C:\GOLD\Develo~1\Apollo\pc_sou~1\standard\lib\temp
TEMP = C:\GOLD\Develo~1\Apollo\pc_sou~1\standard\lib\temp
SRC_C = C:\GOLD\Develo~1\Apollo\pc_sou~1\standard\pc
SRC_G = C:\GOLD\Develo~1\Apollo\pc_sou~1\standard\pc
SRC_I = C:\GOLD\Develo~1\Apollo\pc_sou~1\standard\pc
SRC_E = C:\GOLD\Develo~1\Apollo\pc_sou~1\standard\pc
SRC_S = C:\GOLD\Develo~1\Apollo\pc_sou~1\standard\pc

PROC_LIB = $(ORACLE_HOME)\PRECOMP\lib\orasql10.lib
XML_LIB = $(ORACLE_HOME)\lib\oraxml10.lib
CC_LIB = $(MSVCPP_HOME)\lib\wsock32.lib

7. modify file comp.bat
Ubah spt contoh berikut ini
call c:\gold\develo~1\apollo\pc_sou~1\standard\makefile\envnt.bat

8. masuk command prompt, dan coba lakukan compile all semua pc standard, dengan perintah comp %BIN% ALL

9. Untuk yang specif, lakukan hal yang sama untuk pengaturan settingnya, sedangkan untuk lebih detail yang harus ditambahkan silahkan baca posting blog saya berikutnya

No comments: