home *** CD-ROM | disk | FTP | other *** search
/ Graphics Plus / Graphics Plus.iso / general / procssng / ccs / ccs-11.lha / ccs-lib / tools / x11 / tuner / makefile.src
Encoding:
Makefile  |  1993-08-23  |  1.6 KB  |  70 lines

  1. #
  2. # makefile for user-contributed/lbl/x11/tuner
  3. #
  4. # Note: 3 binaries, tuner, ftuner, and getx are created from the same source
  5. #        files. ftuner uses the -DDIRECT cpp directive for Fast display
  6. #
  7.  
  8. LOCALINC=-I$(CCS_ROOT)/include
  9. CPPFLAGS_tuner = $(LOCALINC) -DX_WINDOW_DEP -DHIPS_IMAGE -DCOMMON_TOOL
  10. CPPFLAGS_ftuner = $(CPPFLAGS_tuner) -DDIRECT
  11. CPPFLAGS_getx = $(CPPFLAGS_ftuner) -DC_TUNER
  12.  
  13. PUBLIC = public.o
  14. PANEL_LIB = -L../lib -lpanel -lccs -lrle -lX11 -ltiff $(LIBRARY) $(OTHERLIBS)
  15. #    for writing RLE & HIPS
  16. LIBRARIES = $(PUBLIC) $(LDFLAGS) -lscs4 $(PANEL_LIB)
  17. #    for writing other image tpye, such as sun-raster file
  18. LIBRARIE6 = $(PUBLIC) $(LDFLAGS) -lscs6 $(PANEL_LIB) -lpixrect -ljpeg
  19.  
  20. SOURCES = update.c tuner.c
  21. Objects = update.o tuner.o
  22. OBJECTS = fupdate.o ftuner.o
  23. GETOBJS = cupdate.o colors.o getx11.o get_pic.o
  24.  
  25. PGMS = tuner.out ftuner.out
  26.  
  27. install:    $(PUBLIC) $(Objects) tuner.out $(OBJECTS) ftuner.out getx.out
  28.  
  29. tuner.o:    info_any.c
  30. ftuner.o:    info_any.c
  31. colors.o:    info_any.c
  32.  
  33. clean:    clean-pgm
  34. clean-all:    clean_all
  35.  
  36. man:
  37.  
  38. doc:
  39.  
  40. pristine:    pristine-pgm
  41.  
  42. $(PUBLIC):
  43.     $(COMPILEc) $< $(CPPFLAGS_tuner)
  44.  
  45. $(Objects):
  46.     $(COMPILEc) $< $(CPPFLAGS_tuner)
  47.  
  48. $(OBJECTS):
  49.     $(COMPILEc) $(CPPFLAGS_ftuner) $<
  50.  
  51. $(GETOBJS):
  52.     $(COMPILEc) $(CPPFLAGS_getx) $<
  53.  
  54. tuner.out:    $(Objects)
  55.     $(LINKc) tuner $(Objects) $(CFLAGS) $(LIBRARIES) $(LDFLAGS2)
  56.     mv tuner $(DESTDIR)
  57.     @touch $@
  58.  
  59. ftuner.out:    $(OBJECTS)
  60.     $(LINKc) ftuner $(OBJECTS) $(CFLAGS) $(LIBRARIE6) $(LDFLAGS2)
  61.     mv ftuner $(DESTDIR)
  62.     @touch $@
  63.  
  64. getx.out: $(GETOBJS)
  65.     $(CC) -o getx $(CFLAGS) $(GETOBJS) $(LIBRARIE6)
  66.     mv getx $(DESTDIR)
  67.     @touch $@
  68.  
  69. FRC:
  70.