OpenTP1 Version 7 User's Guide
This subsection explains UAP creation using Net Express.
This subsection explains the commands that are specified in the following cases:
If you use the trnmkobj command to create transaction control objects, make sure that you specify the -C "/Zl" option.
If you use the default transaction control object file (dc_trn_allrm.obj) that is created by using the trnlnkrm command, execute the trnlnkrm command with the -C "/Zl" option specified and re-create the object.
If you compile the C language source file created by stbmake, make sure that you specify the "/Zl" compiler option.
This subsection shows an example of a makefile needed for creating an SPP.
The following shows the names of the source files that are used in the example of a makefile:
The following shows an example of a makefile:
!include <ntwin32.mak> # TP1TEST Make File CBLFG = /LITLINK /OBJ SYSLIB = $(conlibsdll) TP1LIB = [libdam.lib]#1 [libtam.lib]#2 libbetran.lib user32.lib CBL_LIB = cblrtss.lib cbllds.obj adis.obj adisinit.obj adiskey.obj mffh.obj COBOL = cobol all:TP1TEST.exe # Compile main.obj:main.cbl $(COBOL) $* $(CBLFG); sev1.obj:sev1.cbl $(COBOL) $* $(CBLFG); sev2.obj:sev2.cbl $(COBOL) $* $(CBLFG); ex_sstb.obj:ex_sstb.c [$(cc) $(cflags) /Zl $(cvarsdll) $*.c]#3 # Create a stub source file ex_sstb.c:ex.def $(DCDIR)\bin\stbmake $? # Link TP1TEST.exe: main.obj sev1.obj sev2.obj ex_sstb.obj $(link) $(conflags) -out:$*.exe $** \ [$(DCDIR)\spool\trnrmcmd\userobj\dctrninf.obj \]#4 $(TP1LIB) $(SYSLIB) $(CBL_LIB) |
This subsection shows an example of a makefile needed for creating an MHP.
!include <ntwin32.mak> # makefile for making UAP(COBOL Language) # Command STBMAKE = $(DCDIR)\bin\stbmake.exe # User server object MHP_SRC = CBLMHPM.obj TCPMHPSV.obj # Include file INCDIR = -I. \ -I $(DCDIR)\include # Common object SH_OBJ = $(DCDIR)\spool\trnrmcmd\userobj\mcf_sw.obj # Common library LIBNAME = $(DCDIR)\lib\libmcf.lib \ $(DCDIR)\lib\libmnet.lib \ $(DCDIR)\lib\libbetran.lib # Library CBLLIBNAME = cblrtss.lib cbllds.obj adis.obj adisinit.obj\ adiskey.obj mffh.obj # Compiler options CC = cl COBOL = cobol CCOPT = -nologo $(cflags) $(cvarsdll) CONFIG = -c -Zl CFLAGS = $(CCOPT) $(CONFIG) $(INCDIR) CBLFG = /LITLINK /OBJ # Linker options LK = link LNKFLG = $(conflags) /NODEFAULTLIB LINKAGE = $(LIBNAME) msvcrt.lib user32.lib $(conlibsdll) $(CBLLIBNAME) all : $(SH_OBJ) tcpmhp.exe # Compile .c.obj : $(CC) $(CFLAGS) $*.c TCPMHPSV.obj : $(COBOL) tcpmhpsv.cbl $(CBLFG); CBLMHPM.obj : $(COBOL) cblmhpm.cbl $(CBLFG); cblmhp_sstb.obj : $(CC) $(CFLAGS) cblmhp_sstb.c # Create stub source file cblmhp_sstb.c : $(STBMAKE) cblmhp.def # Link tcpmhp.exe : $(MHP_SRC) cblmhp_sstb.obj cblnames -V -MCBLMHPM + CBLMHPM $(LK) $(LNKFLG) $** $(LINKAGE) $(SH_OBJ) -out:$@ !if exist $@.manifest mt.exe -nologo -manifest $@.manifest -outputresource:$@;1 !if exist $@.manifest del $@.manifest $(SH_OBJ) : $(DCDIR)\bin\trnmkobj -o mcf_sw -R OpenTP1_MCF -C "/Zl" |
All Rights Reserved. Copyright (C) 2012, Hitachi, Ltd.