home *** CD-ROM | disk | FTP | other *** search
/ Amiga ISO Collection / AmigaUtilCD2.iso / Misc / The_SOURCE#7.LHA / Source / DefFunc.lha / DefFunc / Makefile < prev    next >
Encoding:
Makefile  |  1993-12-14  |  382 b   |  24 lines

  1. # for library file 
  2. LIBDIR = /usr/lib 
  3.  
  4. # for include file
  5. INCDIR = /usr/include
  6.  
  7. CFLAGS = -O
  8. OBJS = defunc.o dfctree.o dfcsymtable.o y.tab.o
  9.  
  10. y.tab.c: dfcparse.y
  11.     $(YACC.y) dfcparse.y
  12.  
  13. install: libdfc.a
  14.     install libdfc.a $(LIBDIR)
  15.     install defunc.h $(INCDIR)
  16.     ranlib -t $(LIBDIR)/libdfc.a 
  17.  
  18. libdfc.a: $(OBJS)
  19.     $(AR) $(ARFLAGS) $@ $(OBJS)
  20.     ranlib $@
  21.  
  22. clean:
  23.     $(RM) $(OBJS) y.tab.c 
  24.