36 lines
658 B
Cheetah
36 lines
658 B
Cheetah
#
|
|
# Template Makefile to create binary form COBOL source
|
|
#
|
|
|
|
prefix=..
|
|
exec_prefix=../../compiler
|
|
g_includes=-I/usr/local/include
|
|
g_libraries=-L/usr/local/lib
|
|
|
|
CCX=gcc
|
|
COB=${exec_prefix}/htcobol
|
|
ASM=as
|
|
RM=rm -f
|
|
|
|
COPYBOOKS= -I../copybooks -I.
|
|
INCLUDES=-I./ ${g_includes}
|
|
LIBS=${g_libraries} -L../../lib -lhtcobol -ldb -lm
|
|
LDFLAGS=
|
|
COBFLAGS=-P -D ${COPYBOOKS}
|
|
ASMFLAGS=-D
|
|
CCXFLAGS=-g ${INCLUDES}
|
|
|
|
SRCS = @_program_name_@.cob
|
|
|
|
OBJS = $(SRCS:.cob=.o)
|
|
|
|
PROG = @_program_name_@
|
|
|
|
#include ${prefix}/config/C.rules.in
|
|
include ${prefix}/config/COB.rules.in
|
|
#include ${prefix}/config/COB.build.tmpl.in
|
|
include ${prefix}/config/COB.build.tmpl.t.in
|
|
|
|
clean: cleanbase
|
|
#
|