home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Sams Cobol 24 Hours
/
Sams_Cobol_24_Hours.iso
/
Cobol32
/
PowerGEM
/
Powergem.z
/
dynalink.tmf
< prev
next >
Wrap
Text File
|
1995-10-04
|
1KB
|
64 lines
#Template Makefile for Dynamic link structure(32-bit)
EXETYPE = 12
SUFFIXES = .mak .exe .lib .dll .obj .def .cob .cbl
.SUFFIXES : $(SUFFIXES)
MAKEFILE =
PROGRAM =
SUB_PROGRAM =
COMP = COBOL32.EXE
LD = LINK.EXE
IMPLIB = LIB.EXE
SRCS =
OBJS =
INCS =
LIBS =
MAKELIBS =
MAINSRC =
MAINOBJ =
COMPFLAGS =
LDFLAGS =
# Making Rule
.cob.obj:
$(COMP) $(COMPFLAGS) $*.cob
.cbl.obj:
$(COMP) $(COMPFLAGS) $*.cbl
.obj.exe:
$(LD) $(LDFLAGS) $*.obj $(LIBS) /OUT:$*.exe
.obj.dll:
$(IMPLIB) /DEF:$*.def /OUT:$*.lib /MACHINE:IX86 $*.obj
$(LD) /DLL /ENTRY:_DllMainCRTStartup@12 $(LDFLAGS) $*.obj $*.exp $(LIBS) /OUT:$*.dll
.cob.dll:
$(COMP) $(COMPFLAGS) $*.cob
$(IMPLIB) /DEF:$*.def /OUT:$*.lib /MACHINE:IX86 $*.obj
$(LD) /DLL /ENTRY:_DllMainCRTStartup@12 $(LDFLAGS) $*.obj $*.exp $(LIBS) /OUT:$*.dll
.cbl.dll:
$(COMP) $(COMPFLAGS) $*.cbl
$(IMPLIB) /DEF:$*.def /OUT:$*.lib /MACHINE:IX86 $*.obj
$(LD) /DLL /ENTRY:_DllMainCRTStartup@12 $(LDFLAGS) $*.obj $*.exp $(LIBS) /OUT:$*.dll
.def.lib:
$(IMPLIB) /DEF:$*.def /OUT:$*.lib /MACHINE:IX86 $*.obj
# Dependents Relationship
all : $(SUB_PROGRAM) $(PROGRAM)
$(MAINOBJ) : $(MAINSRC) $(INCS) $(MAKEFILE)
$(COMP) -M $(COMPFLAGS) $(MAINSRC)
$(OBJS) : $(INCS) $(MAKEFILE)
$(PROGRAM) : $(MAINOBJ) $(MAKEFILE)
$(LD) $(LDFLAGS) $(MAINOBJ) $(LIBS) $(MAKELIBS) /OUT:$(PROGRAM)