home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD2.mdf / c / library / dos / grafik / giflib11 / lib / makefile.tc < prev    next >
Encoding:
Makefile  |  1990-07-28  |  1.4 KB  |  58 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.  
  13. # Works only on TC++ 1.0 make - swap out make before invoking command.
  14. .SWAP
  15.  
  16. # Your C compiler
  17. CC = tcc
  18.  
  19. # MDL set?
  20. !if !$d(MDL)
  21. MDL=l
  22. !endif
  23.  
  24. # Where all the include files are:
  25. INC = -I.
  26.  
  27. CFLAGS = -m$(MDL) -a- -f- -G -O -r -c -d -w -v- -y- -k- -N-
  28.  
  29. DEST = c:\tc\mylib
  30.  
  31. OBJS = dev2gif.obj egif_lib.obj dgif_lib.obj gif_hash.obj gif_err.obj getarg.obj
  32. # Show me better way if you know one to prepare this line for TLIB:
  33. POBJS = +dev2gif.obj +egif_lib.obj +dgif_lib.obj +gif_hash.obj +gif_err.obj +getarg.obj
  34.  
  35. # The {$< } is also new to TC++ 1.0 make - remove the { } pair if your make
  36. # choke on them (the { } signals batch mode that combines few operation at the
  37. # same time - very nice feature!).
  38. .c.obj:
  39.     $(CC) $(INC) $(CFLAGS) {$< }
  40.  
  41. gif_libl.lib: $(OBJS)
  42.     del gif_lib$(MDL).lib
  43.     tlib gif_lib$(MDL).lib $(POBJS), gif_lib$(MDL).lst
  44.     copy gif_lib$(MDL).lib $(DEST)
  45.  
  46. dev2gif.obj: gif_lib.h
  47.  
  48. egif_lib.obj: gif_lib.h gif_hash.h
  49.  
  50. dgif_lib.obj: gif_lib.h gif_hash.h
  51.  
  52. gif_hash.obj: gif_lib.h gif_hash.h
  53.  
  54. gif_err.obj: gif_lib.h
  55.  
  56. getarg.obj: getarg.h
  57.  
  58.