45 lines
862 B
Makefile
45 lines
862 B
Makefile
#
|
|
# 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
|
|
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=-g
|
|
#COBFLAGS=-P -g -D -t ${COPYBOOKS}
|
|
COBFLAGS=-P ${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
|
|
|
|
#${PROG}: ${OBJS}
|
|
# $(CCX) -g -o $@ ${OBJS} $(LDFLAGS) $(LIBS)
|
|
|
|
clean: cleanbase
|
|
@${RM} cobsub.lis cobsub.s.txt cobsub.s
|
|
#
|