home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / mmoshead.zip / makefile < prev    next >
Makefile  |  1994-02-08  |  2KB  |  99 lines

  1. ###############################
  2. # makefile of mm4emx10
  3. #
  4. # using emx 0.8h, dmake 3.8
  5. #
  6. #
  7. # Marc E.E. van Woerkom, 2/94
  8. #
  9.  
  10. #
  11. # makro definitions
  12. #
  13.  
  14. # Multimedia for emx 1.0
  15. PACKAGE = mm4emx10
  16.  
  17. # OS/2 multimedia extensions library
  18. OS2ME     = os2me
  19. OS2ME_A   = $(OS2ME).a
  20. OS2ME_LIB = $(OS2ME).lib
  21.  
  22. # emx paths
  23. EMX     = c:\emx
  24. EMX_INC = $(EMX)\include
  25. EMX_LIB = $(EMX)\lib
  26.  
  27. # compiler stuff
  28. CC=gcc
  29. CFLAGS = -Wall -Zomf -O
  30. LFLAGS = -Zomf -Zsys -l$(OS2ME) -s
  31.  
  32. # import lib stuff
  33. AR=ar
  34. IMP=emximp
  35. IMPORTS = mdm.imp ssm.imp mmio.imp sw.imp mciapi.imp
  36.  
  37. # header files
  38. INCLUDES = os2me.h os2medef.h meerror.h  mciapi.h ssm.h \
  39.            mcios2.h mmdrvos2.h mmioos2.h codec.h sw.h
  40.  
  41.  
  42. #
  43. # dependency rules
  44. #
  45.  
  46. # give hints
  47. usage:
  48.     @+type makefile.use
  49.  
  50.  
  51. all: $(OS2ME)
  52.  
  53.  
  54. $(OS2ME): $(OS2ME_A) $(OS2ME_LIB)
  55.  
  56. $(OS2ME_A): $(IMPORTS)
  57.     $(IMP) -o $(OS2ME_A) $(IMPORTS)
  58.     $(AR) r $(OS2ME_A)
  59.     $(AR) s $(OS2ME_A)
  60.  
  61.  
  62. # convert UNIX style libraries to the Intel OMF
  63. .a.lib:
  64.     emxomf -s -l $*.a
  65.  
  66.  
  67. # install files (+: use shell to execute)
  68. inst: inst_h
  69.     +copy $(OS2ME_A)   $(EMX_LIB)
  70.     +copy $(OS2ME_LIB) $(EMX_LIB)
  71.  
  72. # repeat copy 
  73. inst_h:! $(INCLUDES)
  74.     +copy $? $(EMX_INC)
  75.  
  76.  
  77. # deinstall files (-: ignore possible errors)
  78. deinst: deinst_h
  79.     -+del $(EMX_LIB)\$(OS2ME_A)
  80.     -+del $(EMX_LIB)\$(OS2ME_LIB)
  81.  
  82. # repeat delete
  83. deinst_h:! $(INCLUDES)
  84.     -+del $(EMX_INC)\$?
  85.  
  86.  
  87. # clean up
  88. clean:
  89.     -+del $(OS2ME_A)
  90.     -+del $(OS2ME_LIB)
  91.  
  92.  
  93. # create distribution
  94. dist: all
  95.     -+del $(PACKAGE).zip
  96.     zip -9r $(PACKAGE) *
  97.     unzip -t $(PACKAGE)
  98.  
  99.