50 lines
1.1 KiB
Makefile
50 lines
1.1 KiB
Makefile
prefix=..
|
|
exec_prefix=../../compiler
|
|
g_includes=-I/usr/local/include
|
|
g_libraries=-L/usr/local/lib
|
|
|
|
SHELL=/bin/sh
|
|
CCX=gcc
|
|
#COB=${exec_prefix}/htcobol
|
|
COB=htcobol
|
|
ASM=as
|
|
RM=rm -f
|
|
|
|
COPYBOOKS= -I../copybooks -I.
|
|
INCLUDES= -I/usr/local/include -I/usr/local/pgsql/include
|
|
CCXFLAGS= -g -DDEBUG ${INCLUDES}
|
|
LIBS= -L../../lib -lhtcobol -ldb -ldl -lm
|
|
#LIBS= -L../../lib -L/usr/local/lib -L/usr/local/pgsql/lib \
|
|
# -ldb -lhtcobol -lm -lpq -lncurses
|
|
EXTRALIBS=
|
|
LDFLAGS=
|
|
#COBFLAGS=-P -g -D -t ${COPYBOOKS}
|
|
COBFLAGS=-P ${COPYBOOKS}
|
|
ASMFLAGS=-D
|
|
|
|
SRC1 = test28.cob
|
|
SRC2 = test28a.cob
|
|
OBJS = $(SRC1:.cob=.o) $(SRC2:.cob=.o)
|
|
|
|
PROG1 = test28
|
|
PROG2 = test28a
|
|
PROGS = $(PROG1)
|
|
|
|
|
|
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
|
|
|
|
all: ${PROGS}
|
|
|
|
${PROGS}: ${OBJS}
|
|
$(CCX) -g -o $@ ${OBJS} $(LDFLAGS) $(LIBS)
|
|
# strip $@
|
|
|
|
clean:
|
|
@${RM} ${OBJS} $(PROG1) $(PROG1)*lis ${PROG1}*txt ${PROG1}*s \
|
|
${OBJS2} $(PROG2) $(PROG2)*lis ${PROG2}*txt ${PROG2}*s \
|
|
core *run.err.trace.txt *run.trace.txt temp*cob
|
|
|