49 lines
858 B
Makefile
49 lines
858 B
Makefile
#
|
|
# Makefile to create binaries form COBOL sources
|
|
#
|
|
|
|
prefix=..
|
|
exec_prefix=../../compiler
|
|
g_includes=-I/usr/local/include
|
|
g_libraries=-L/usr/local/lib
|
|
|
|
CCX=gcc
|
|
#COB=${exec_prefix}/htcobol
|
|
COB=htcobol
|
|
ASM=as
|
|
RM=rm -f
|
|
|
|
COPYBOOKS= -I../copybooks -I.
|
|
INCLUDES= -I/usr/local/include
|
|
LIBS=${g_libraries} -L../../lib -lhtcobol -ldb -ldl -lm
|
|
LDFLAGS=
|
|
#COBFLAGS=-P -g -D -v -t ${COPYBOOKS}
|
|
#COBFLAGS=-P -e test35 ${COPYBOOKS}
|
|
COBFLAGS=-P ${COPYBOOKS}
|
|
ASMFLAGS=-D
|
|
CCXFLAGS=-g ${INCLUDES}
|
|
|
|
SRC1 = test35.cob
|
|
|
|
OBJS1 = $(SRC1:.cob=.o)
|
|
|
|
PROG1 = test35
|
|
|
|
PROGS = $(PROG1)
|
|
|
|
|
|
include ${prefix}/config/COB.rules.in
|
|
include ${prefix}/config/COB.build.tmpl.in
|
|
|
|
|
|
all: ${PROGS}
|
|
|
|
${PROG1}: ${OBJS1}
|
|
$(CCX) -g -o $@ ${OBJS1} $(LDFLAGS) $(LIBS)
|
|
# strip $@
|
|
|
|
#
|
|
clean:
|
|
@${RM} ${OBJS1} $(PROG1) $(PROG1)*lis ${PROG1}*txt ${PROG1}*s \
|
|
core *run.err.trace.txt *run.trace.txt temp*cob
|