home *** CD-ROM | disk | FTP | other *** search
/ Encyclopedia of Graphics File Formats Companion / GFF_CD.ISO / software / unix / saoimage / sao1_07.tar / btnlib / makefile < prev    next >
Makefile  |  1993-05-04  |  1KB  |  49 lines

  1. # makefile for SAOimage btnlib
  2. #
  3. # This version is a generic makefile, as opposed to the several editions for
  4. # various machines that reside in the parent directory.  This file is intended
  5. # to be driven from one of these parent makefiles which have knowledge about
  6. # machine dependencies.  On many systems, however, this file can be run as a
  7. # standalone makefile, i.e., if one were to type "make" in this directory,
  8. # the library would build.  It is preferable to build btnlib as part of the
  9. # make procedure in the parent SAOimage directory.
  10.  
  11. CFLAGS  = -c -O
  12.  
  13. LINT   = lint
  14. #RANLIB = echo
  15. RANLIB = ranlib
  16. RM     = rm -f
  17.  
  18. .c.o:
  19.     $(CC) $(CFLAGS) $*.c
  20.  
  21. SRCS =    buttons.h    borders.h \
  22.     attach.c    draw.c        event.c        border.c \
  23.     create.c    label.c        image.c        mount.c \
  24.     press.c        remote.c    resize.c    util.c
  25.  
  26. OBJS =    attach.o    draw.o        event.o        border.o \
  27.     create.o    label.o        image.o        mount.o \
  28.     press.o        remote.o    resize.o    util.o
  29.  
  30. LIB    = libbtn.a
  31. XLIBH    = /usr/include/X11/Xlib.h
  32.  
  33. all:    $(LIB)
  34.  
  35. $(OBJS):  buttons.h $(XLIBH)
  36.  
  37. create.o : borders.h motf.h
  38.  
  39. $(LIB): $(OBJS)
  40.     ar cr $(LIB) $(OBJS)
  41.     $(RANLIB) $(LIB) > /dev/null
  42.     $(RM) *.o
  43.  
  44. lint:
  45.     $(LINT) *.c
  46.  
  47. clean:
  48.     $(RM) a.out core *.bak *~ \#* *.o
  49.