# # Makefile.in for cobolpp, the COBOL pre-processor # SHELL=/bin/sh @SET_MAKE@ prefix=@prefix@ exec_prefix=@exec_prefix@ INSTALL=@INSTALL@ INSTALL_DATA=@INSTALL_DATA@ YACC=@YACC@ LEX=@LEX@ CCX=@CC@ EXEEXT=@exeext@ RM= rm -f INSTBIN=@cobbin_default@ INSTRC=@cobdir_default@ # INCLUDES=@INCLUDES@ CCXFLAGS=${INCLUDES} @CCXFLAGS@ -Wall CCXFLAGS1=${INCLUDES} @CCXFLAGS@ LIBS=@LIBS@ LDFLAGS=@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@exeext@ 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)