tinycobol/cobpp/Makefile

86 lines
1.3 KiB
Makefile

# Generated automatically from Makefile.in by configure.
#
# Makefile.in for cobolpp, the COBOL pre-processor
#
SHELL=/bin/sh
prefix=/usr/local
exec_prefix=${prefix}
INSTALL=/usr/bin/install -c
INSTALL_DATA=${INSTALL} -m 644
YACC=bison
LEX=flex
CCX=gcc
EXEEXT=
RM= rm -f
INSTBIN=${prefix}/bin
INSTRC=${prefix}/share/htcobol
#
INCLUDES=-I/usr/include -I/usr/local/include -I../lib -I../
CCXFLAGS=${INCLUDES} -fcommon -Wall
CCXFLAGS1=${INCLUDES} -fcommon
LIBS=-L/usr/lib -L/usr/local/lib
LDFLAGS=
MAKEDEPEND=@MAKEDEPEND@
#
# Rules for compiling .c .l sources
#
.SUFFIX: .c .o .y .l
.c.o:
$(CCX) $(CCXFLAGS) -c $<
#
.y.c:
$(YACC) -dv -b parser -p pp_yy $<
#
.l.c:
$(LEX) -o$@ -Ppp_yy $<
#
SRCS = parser.tab.c scanner.c cobpp.c
OBJS = $(SRCS:.c=.o)
PROG = htcobolpp
all: $(PROG)
devel: all
${PROG}: ${OBJS}
$(CCX) -g -o $@ ${OBJS} $(LDFLAGS) $(LIBS)
# strip $@
scanner.c: scanner.l
# $(LEX) -o$@ -Ppp_yy $<
parser.tab.c: parser.y scanner.c
$(YACC) -dv -b parser -p pp_yy $<
parser.tab.o: parser.tab.c
$(CCX) $(CCXFLAGS1) -c parser.tab.c
scanner.o: scanner.c
$(CCX) $(CCXFLAGS1) -c scanner.c
clean:
@$(RM) $(PROG) $(OBJS) scanner.c \
parser.output parser.tab.c parser.tab.h \
core
install: $(PROG)
strip $(PROG)
${INSTALL} -m 755 $(PROG) $(INSTRC)/$(PROG)
# ${INSTALL_DATA} $(PROG) $(INSTRC)/$(PROG)