Advertisement
Guest User

Makefile.w32

a guest
Apr 22nd, 2014
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 2.65 KB | None | 0 0
  1. # Win32 Makefile originally by Emil Mikulic <darkmoon@connexus.net.au>
  2. # Updates by Eddie Kohler <ekohler@gmail.com> and
  3. # Steven Marthouse <comments@vrml3d.com>
  4.  
  5. # This makefile should work under Win32 (95/98/NT/whatever) or Win64.
  6. # It should work out-of-the-box with Visual C++ 5.
  7. #
  8. # C:\GIFSICLE> nmake -f Makefile.w32
  9.  
  10. # *** MAKING UNGIFSICLE ***
  11. # If `GIFWRITE_OBJ' is defined to `gifwrite.obj', Gifsicle will use
  12. # Unisys-patented LZW compression. If it is defined to `ungifwrt.obj', it
  13. # will use unpatented run-length compression, which creates larger GIFs but
  14. # is completely free software. If you downloaded the ungifsicle package,
  15. # which doesn't have `gifwrite.c', you MUST define `GIFWRITE_OBJ' to
  16. # `ungifwrt.obj' by commenting the first line below and uncommenting the
  17. # second.
  18. GIFWRITE_OBJ = gifwrite.obj
  19. #GIFWRITE_OBJ = ungifwrt.obj
  20.  
  21. # *** SUPPORTING WILDCARD EXPANSION ***
  22. # Define `SETARGV_OBJ' to the filename for the `setargv.obj' object file.
  23. # The definition included here works for Microsoft compilers; you will
  24. # probably need to change it if you're using a different compiler. You can
  25. # define it to the empty string, in which case Gifsicle will compile fine,
  26. # but you won't be able to use wildcards in file name arguments.
  27. SETARGV_OBJ = "C:\Program Files (x86)\Microsoft Visual Studio 12.0\VC\lib\setargv.obj"
  28.  
  29. CC = cl
  30. CFLAGS = -I.. -I..\include -DHAVE_CONFIG_H -D_CONSOLE /MT /W3 /Qvec-report:1 /O1
  31.  
  32. GIFSICLE_OBJS = clp.obj fmalloc.obj giffunc.obj gifread.obj gifunopt.obj \
  33.     $(GIFWRITE_OBJ) merge.obj optimize.obj quantize.obj support.obj \
  34.     xform.obj gifsicle.obj $(SETARGV_OBJ)
  35.  
  36. GIFDIFF_OBJS = clp.obj fmalloc.obj giffunc.obj gifread.obj gifdiff.obj \
  37.     $(SETARGV_OBJ)
  38.  
  39. .c.obj:
  40.     $(CC) $(CFLAGS) /c $<
  41.  
  42. gifsicle.exe: $(GIFSICLE_OBJS)
  43.     $(CC) $(CFLAGS) /Fegifsicle.exe $(GIFSICLE_OBJS)
  44.  
  45. gifdiff.exe: $(GIFDIFF_OBJS)
  46.     $(CC) $(CFLAGS) /Fegifdiff.exe $(GIFDIFF_OBJS)
  47.  
  48. clp.obj: ..\config.h ..\include\lcdf\clp.h clp.c
  49.  
  50. fmalloc.obj: ..\config.h fmalloc.c
  51.  
  52. giffunc.obj: ..\config.h giffunc.c ..\include\lcdfgif\gif.h
  53. gifread.obj: ..\config.h gifread.c ..\include\lcdfgif\gif.h
  54. gifwrite.obj: ..\config.h gifwrite.c ..\include\lcdfgif\gif.h
  55. ungifwrt.obj: ..\config.h ungifwrt.c ..\include\lcdfgif\gif.h
  56. gifunopt.obj: ..\config.h gifunopt.c ..\include\lcdfgif\gif.h
  57.  
  58. merge.obj: ..\config.h gifsicle.h merge.c
  59. optimize.obj: ..\config.h gifsicle.h optimize.c
  60. quantize.obj: ..\config.h gifsicle.h quantize.c
  61. support.obj: ..\config.h gifsicle.h support.c
  62. xform.obj: ..\config.h gifsicle.h xform.c
  63. gifsicle.obj: ..\config.h gifsicle.h gifsicle.c
  64.  
  65. ..\config.h: win32cfg.h
  66.     copy win32cfg.h ..\config.h
  67.  
  68. clean:
  69.     del *.obj
  70.     del *.exe
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement