home *** CD-ROM | disk | FTP | other *** search
/ MPEG Toolkit / MPEG Toolkit.iso / os2 / mpegenc / src / pbmplus / ppm / makefile.os2 < prev    next >
Encoding:
Makefile  |  1997-01-01  |  1.7 KB  |  63 lines

  1. # Makefile for ppm tools for 32 bit OS/2.
  2. #
  3. # Copyright (C) 1989, 1991 by Jef Poskanzer.
  4. # Modified for 32 bit OS/2 by Andy Key
  5. #
  6. # Permission to use, copy, modify, and distribute this software and its
  7. # documentation for any purpose and without fee is hereby granted, provided
  8. # that the above copyright notice appear in all copies and that both that
  9. # copyright notice and this permission notice appear in supporting
  10. # documentation.  This software is provided "as is" without express or
  11. # implied warranty.
  12.  
  13. PGMDIR =    ../pgm
  14. INCLUDEPGM =    /I$(PGMDIR)
  15. LIBPGM =    $(PGMDIR)/pgm.lib
  16. DEFPGM =    $(PGMDIR)/pgm.h
  17. DEFLIBPGM =    $(PGMDIR)/libpgm.h
  18.  
  19. PBMDIR =    ../pbm
  20. INCLUDEPBM =    /I$(PBMDIR)
  21. LIBPBM =    $(PBMDIR)/pbm.lib
  22. DEFPBM =    $(PBMDIR)/pbm.h ../pbmplus.h
  23. DEFLIBPBM =    $(PBMDIR)/libpbm.h
  24.  
  25. INCL =        /I.. $(INCLUDEPGM) $(INCLUDEPBM)
  26. ALLCFLAGS =    $(CFLAGS) $(INCL)
  27. LIBPPM =    ppm.lib
  28.  
  29. all:        lib
  30.  
  31. $(LIBPBM):
  32.         (cd $(PBMDIR) && $(MAKE) lib)
  33.  
  34. $(LIBPGM):
  35.         (cd $(PGMDIR) && $(MAKE) lib)
  36.  
  37. lib:        $(LIBPPM)
  38.  
  39. $(LIBPPM):    libppm1.obj libppm2.obj libppm3.obj libppm4.obj libppm5.obj
  40.         -del $(LIBPPM)
  41.         lib /NOLOGO $(LIBPPM) \
  42.             +libppm1.obj +libppm2.obj +libppm3.obj \
  43.             +libppm4.obj +libppm5.obj;
  44.  
  45. libppm1.obj:    ppm.h $(DEFPGM) $(DEFPBM) libppm.h libppm1.c
  46.         $(CC) $(ALLCFLAGS) /C+ libppm1.c
  47.  
  48. libppm2.obj:    ppm.h $(DEFPGM) $(DEFPBM) libppm.h libppm2.c $(DEFLIBPGM) \
  49.         $(DEFLIBPBM)
  50.         $(CC) $(ALLCFLAGS) /C+ libppm2.c
  51.  
  52. libppm3.obj:    ppm.h $(DEFPGM) $(DEFPBM) ppmcmap.h libppm.h libppm3.c
  53.         $(CC) $(ALLCFLAGS) /C+ libppm3.c
  54.  
  55. libppm4.obj:    ppm.h $(DEFPGM) $(DEFPBM) libppm4.c
  56.         $(CC) $(ALLCFLAGS) /C+ libppm4.c
  57.  
  58. libppm5.obj:    ppm.h $(DEFPGM) $(DEFPBM) ppmdraw.h libppm5.c
  59.         $(CC) $(ALLCFLAGS) /C+ libppm5.c
  60.  
  61. clean:
  62.         -del *.obj *.lib
  63.