home *** CD-ROM | disk | FTP | other *** search
/ Media Share 9 / MEDIASHARE_09.ISO / graphics / gif-util.zip / MAKEFILE.2 < prev    next >
Text File  |  1989-08-01  |  1KB  |  51 lines

  1. #
  2. # This is the make file for the lib subdirectory of the GIF library
  3. # In order to run it tcc is assumed to be available, in addition to
  4. # tlib and obviously borland make.
  5. #
  6. # Usage: "make [-DMDL=model]" where model can be l (large) or c (compact) etc.
  7. # Note the MDL is optional with large model as default.
  8. #
  9. #                Gershon Elber, Jun 1989
  10. #
  11.  
  12. # Your C compiler
  13. CC = tcc
  14.  
  15. # MDL set?
  16. !if !$d(MDL)
  17. MDL=l
  18. !endif
  19.  
  20. # Where all the include files are:
  21. INC = -I.
  22.  
  23. # Note the tcc xxxxxx.tc files enables ALL warnings for more strict tests so
  24. # you should use them during debuging. I didnt add it here as command lines
  25. # are limited to 128 chars...
  26. FLAGS = -m$(MDL) -a- -f- -G -O -r -c -d -w
  27.  
  28. OBJS = dev2gif.obj egif_lib.obj dgif_lib.obj gif_hash.obj gif_err.obj getarg.obj
  29. # Show me better way if you know one to preper this line for TLIB:
  30. OBJS1 = +dev2gif.obj +egif_lib.obj +dgif_lib.obj +gif_hash.obj +gif_err.obj +getarg.obj
  31.  
  32. .c.obj:
  33.     $(CC) $(INC) $(FLAGS) $<
  34.  
  35. gif_libl.lib: $(OBJS)
  36.     del gif_lib$(MDL).old
  37.     ren gif_lib$(MDL).lib gif_lib$(MDL).old
  38.     tlib gif_lib$(MDL).lib $(OBJS1), gif_lib$(MDL).lst
  39.  
  40. dev2gif.obj: gif_lib.h
  41.  
  42. egif_lib.obj: gif_lib.h gif_hash.h
  43.  
  44. dgif_lib.obj: gif_lib.h gif_hash.h
  45.  
  46. gif_hash.obj: gif_lib.h gif_hash.h
  47.  
  48. gif_err.obj: gif_lib.h
  49.  
  50. getarg.obj: getarg.h
  51.