fatbase

portable OpenBSD tools
git clone git@git.2f30.org/fatbase.git
Log | Files | Refs

Makefile (306B)


      1 OBJ = scan.o ytab.o tty.o reallocarray.o strlcpy.o strlcat.o
      2 TARG = bc
      3 LDLIBS = -ledit -lcurses
      4 
      5 all: ytab.c scan.c $(TARG)
      6 
      7 ytab.c ytab.h: bc.y
      8 	$(YACC) -d bc.y
      9 	mv y.tab.c ytab.c
     10 	mv y.tab.h ytab.h
     11 
     12 scan.c: scan.l
     13 	$(LEX) -oscan.c scan.l
     14 
     15 include ../std.mk
     16 
     17 clean:
     18 	rm -f $(TARG) $(OBJ) scan.c ytab.[ch]