55 lines
1.1 KiB
Makefile
55 lines
1.1 KiB
Makefile
#
|
|
# Makefile to create binaries 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.
|
|
INCLUDES= -I/usr/local/include
|
|
LIBS=${g_libraries} -L../../lib -lhtcobol -lm -ltcl -ltk -ldb
|
|
#LIBS=${g_libraries} -L../../lib -lhtcobol -lm -ldb -ltcl8.0 -ltk8.0 -ldl -lX11
|
|
LDFLAGS=
|
|
#COBFLAGS=-P -g -D -t ${COPYBOOKS}
|
|
COBFLAGS=-P ${COPYBOOKS}
|
|
ASMFLAGS=-D
|
|
CCXFLAGS=-g ${INCLUDES}
|
|
|
|
SRC1 = report.cob
|
|
SRC2 = tclwrapper.c
|
|
|
|
OBJS1 = report.o tclwrapper.o
|
|
|
|
PROG1 = report
|
|
PROGS = $(PROG1)
|
|
|
|
include ${prefix}/config/C.rules.in
|
|
include ${prefix}/config/COB.rules.in
|
|
include ${prefix}/config/COB.build.tmpl.in
|
|
|
|
all: ${PROGS}
|
|
|
|
${PROG1}: ${OBJS1}
|
|
$(CCX) -g -o $@ ${OBJS1} $(LDFLAGS) $(LIBS)
|
|
# strip $@
|
|
|
|
ps:
|
|
./report
|
|
#tex repoutput.tex
|
|
#dvips -t A4size -o repoutput.ps repoutput.dvi
|
|
gv repoutput.ps
|
|
|
|
clean:
|
|
@${RM} ${OBJS1} $(PROG1) $(PROG1)*lis ${PROG1}*s ${PROG1}*s.txt \
|
|
core *run.err.trace.txt *run.trace.txt temp*cob \
|
|
repoutput.* barf*.eps
|
|
|