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

  1. # Makefile for pgm 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. PBMDIR =    ../pbm
  14. INCLUDEPBM =    /I$(PBMDIR)
  15. LIBPBM =    $(PBMDIR)/pbm.lib
  16. DEFPBM =    $(PBMDIR)/pbm.h ../pbmplus.h
  17. DEFLIBPBM =    $(PBMDIR)/libpbm.h
  18.  
  19. INCL =        /I.. $(INCLUDEPBM)
  20. ALLCFLAGS =    $(CFLAGS) $(INCL)
  21. LIBPGM =    pgm.lib
  22.  
  23. all:        lib
  24.  
  25. $(LIBPBM):
  26.         (cd $(PBMDIR) && $(MAKE) lib)
  27.  
  28. lib:        $(LIBPGM)
  29.  
  30. $(LIBPGM):    libpgm1.obj libpgm2.obj
  31.         -del $(LIBPGM)
  32.         lib /NOLOGO $(LIBPGM) +libpgm1.obj +libpgm2.obj;
  33.  
  34. libpgm1.obj:    pgm.h $(DEFPBM) libpgm.h libpgm1.c
  35.         $(CC) $(ALLCFLAGS) /C+ libpgm1.c
  36.  
  37. libpgm2.obj:    pgm.h $(DEFPBM) libpgm.h libpgm2.c $(DEFLIBPBM)
  38.         $(CC) $(ALLCFLAGS) /C+ libpgm2.c
  39.  
  40. clean:
  41.         -del *.obj *.lib
  42.