CFLAGS += -std=c89 LDFLAGS += -lfl fref: lex.yy.c $(CC) $(CFLAGS) -o fref lex.yy.c $(LDFLAGS) lex.yy.c: fref.lex flex fref.lex install: install fref /usr/local/bin install -m 644 fref.1 /usr/local/man/man1