home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / BRIK.ZIP / MAKEFILE < prev    next >
Text File  |  1989-03-09  |  829b  |  38 lines

  1. # Makefile for brik
  2. # ::[[ @(#) makefile 1.7 89/03/09 02:47:07 ]]::
  3.  
  4. # Please see brik.h for configuration options.
  5.  
  6. # "make brik"     -- makes brik in current directory
  7. # "make install"  -- makes brik, then moves it into DESTDIR defined below
  8. # "make clean"    -- deletes object files and executable brik from current dir
  9.  
  10. # Directory where we want to move executable brik on "make install"
  11. DESTDIR=/usr/local/bin/.
  12.  
  13. # CFLAGS are flags for the C compiler.  LDFLAGS are flags for the loader.
  14. # They are defined by the mk* scripts, so they need not be changed here.
  15.  
  16. CFLAGS=
  17. LDFLAGS=
  18.  
  19. CC=cc
  20.  
  21. .c.o :
  22.     $(CC) -c $(CFLAGS) $*.c
  23.  
  24. OBJS = brik.o addbfcrc.o
  25.  
  26. brik: $(OBJS)
  27.     cc $(LDFLAGS) -o brik $(OBJS)
  28.  
  29. brik.o: brik.c brik.h assert.h
  30.  
  31. addbfcrc.o: addbfcrc.c
  32.  
  33. install: brik
  34.     mv brik $(DESTDIR)/brik
  35.  
  36. clean:
  37.     /bin/rm -f $(OBJS) core brik
  38.