#
# Makefile to create binary form COBOL and C sources
#

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/usr/local/include
LIBS=${g_libraries} -L../../lib -lhtcobol -lm
LDFLAGS=
COBFLAGS=-P -D ${COPYBOOKS}
ASMFLAGS=-D
CCXFLAGS=-g ${INCLUDES}

SRC1 = test07.cob 
SRC2 = cobsub.cob
SRC3 = subrot.c

OBJS = $(SRC1:.cob=.o) $(SRC2:.cob=.o) $(SRC3:.c=.o)

PROG = test07


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 
	${RM} cobsub.lis cobsub.s.txt cobsub.s
#
