blob: ed7ff26cab287cd52ba68b272d26c3d930f7a928 [file] [log] [blame]
#
# A simple Makefile to demonstrate how the compat/lib programs are used.
#
COBC = gcobol -g -O0
INCLUDE = ../../posix/cpy ../../posix/udf
FLAGS = -dialect mf $(addprefix -I,$(INCLUDE))
COMPAT = $(subst .cbl,.o,$(wildcard ../lib/gnu/*.cbl))
test: smoke
./$^
smoke: smoke.cbl $(COMPAT)
$(ENV) $(COBC) -o $@ \
$(FLAGS) $(COBCFLAGS) $(LDFLAGS) $^
%.o : %.cbl
$(ENV) $(COBC) -c -o $@ $(FLAGS) $(COBCFLAGS) $^
% : %.cbl
$(ENV) $(COBC) -o $@ $(FLAGS) $(COBCFLAGS) $(LDFLAGS) $^