You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

51 lines
1.1 KiB

cmpp_OBJS = main.o pp_ifs.o pp_lst.o pp_mod.o \
read_ifs.o util.o writ_ifs.o \
ifs_yacc.o ifs_lex.o mod_yacc.o mod_lex.o
cmpp_GEN = ifs_yacc.c ifs_tok.h \
ifs_lex.c ifs_lex.h \
mod_lex.c mod_lex.h \
mod_yacc.c mod_tok.h
YACC = @YACC@ -d
CC = @CC@ @CFLAGS@
LEX = @LEX@ -t
all: cmpp
cmpp: $(cmpp_OBJS)
$(CC) -o cmpp $(cmpp_OBJS)
%.c : %.y
$(YACC) -p $(*:yacc=)yy $<
mv -f y.tab.c $*.c
mv -f y.tab.h $(*:yacc=)tok.h
%.c : %.l
$(LEX) -P$(*:lex=)yy $< > $@
ifs_lex.c : ifs_lex.l
$(LEX) -i -P$(*:lex=)yy $< > $@
install:
clean:
rm -f $(cmpp_OBJS) $(cmpp_GEN) cmpp
# Hack by SDB to enable "make mrproper" from top level.
# Since there is no Makefile.am for this directory, we need to
# incorporate this stuff by hand.
MAINTAINERCLEANFILES = Makefile
maintainer-clean: maintainer-clean-generic
rm -f `find . -type f -name "*~" -print`
rm -f `find . -type f -name "*.orig" -print`
rm -f `find . -type f -name "*.rej" -print`
rm -fR `find . -type d -name ".deps" -print`
maintainer-clean-generic: clean
-test -z "$(MAINTAINERCLEANFILES)" || rm -f $(MAINTAINERCLEANFILES)