tinycobol/utils/cobf2f/Makefile

63 lines
788 B
Makefile

# Generated automatically from Makefile.in by configure.
#
# Makefile.in for cobf2f, the COBOL format (free/fixed) convert utility
#
SHELL=/bin/sh
prefix=/usr/local
exec_prefix=${prefix}
INSTALL=/usr/bin/install -c
LEX=flex
CCX=gcc
RM= rm -f
INSTBIN=${prefix}/bin
#
INCLUDES= -I. -I../../
CCXFLAGS=${INCLUDES}
LIBS=-L/usr/lib -L/usr/local/lib
LDFLAGS=
MAKEDEPEND=@MAKEDEPEND@
#
# Rules for compiling .c .l sources
#
.SUFFIX: .c .o
.c.o:
$(CCX) $(CCXFLAGS) -c $<
#
SRCS = cobf2f.c lexyy.c
OBJS = $(SRCS:.c=.o)
PROG = htcobf2f
all: $(PROG)
${PROG}: ${OBJS}
$(CCX) -o $@ ${OBJS} $(LDFLAGS) $(LIBS)
# strip $@
lexyy.c: scanner.l
$(LEX) -o$@ $<
clean:
@$(RM) $(PROG) $(OBJS) lexyy.c
install: $(PROG)
strip $(PROG)
${INSTALL} -m 755 $(PROG) $(INSTBIN)/$(PROG)