home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / aspio02.zip / makefile < prev    next >
Makefile  |  1999-08-17  |  3KB  |  111 lines

  1. #
  2. # $Source: r:/source/aspi/RCS/makefile,v $
  3. # $Revision: 1.8 $
  4. # $Date: 1999/08/18 02:10:02 $
  5. # $Locker:  $
  6. #
  7. #    Create ASPI Interface Library
  8. #
  9. # $Log: makefile,v $
  10. # Revision 1.8  1999/08/18 02:10:02  vitus
  11. # - added defects.c to library
  12. # - added dispdef.exe to sample applications
  13. #
  14. # Revision 1.7  1999/08/18 00:11:29  vitus
  15. # - updated location of defines.h (moved)
  16. #
  17. # Revision 1.6  1999/08/17 23:51:30  vitus
  18. # - switched to Visual Age for C++
  19. # - added inquiry.c to library
  20. #
  21. # Revision 1.5  1998/11/07 19:45:19  vitus
  22. # - all OBJ created in subdirectory o
  23. # - added creation of plxupd.exe
  24. # - added some modules to support plxupd.exe
  25. #
  26. # Revision 1.4  1998/07/31 00:56:23  vitus
  27. # - added creation of cdspeed.exe
  28. #
  29. # Revision 1.3  1997/09/22 02:30:12  vitus
  30. # added cleanup target (->rcsclean)
  31. # renamed library to aspio.lib
  32. #
  33. # Revision 1.2  1997/09/18 02:03:06  vitus
  34. # more library modules
  35. # more applications
  36. # automatic checkout of modules
  37. #
  38. # Revision 1.1  1997/09/08 01:59:45  vitus
  39. # Initial revision
  40. # ------------------------------------------------
  41. # Sample code to demonstrate use of ASPI Interface.
  42. #
  43. COMPILER *= VAC
  44. DEBUG *= 0
  45.  
  46. .INCLUDE: ../compiler.mkf
  47.  
  48. CFLAGS = $(_CFLAGS)
  49.  
  50.  
  51. ASPIL_SRC = aspill.c hainq.c devtype.c modesense.c modeselect.c \
  52.     rewind.c mount.c seqread.c inquiry.c defects.c \
  53.     plxflshchk.c plxflshera.c plxflshwr.c \
  54.     ascii.c
  55. ASPIL_INC = srb.h scsi.h aspio.h
  56.  
  57. APP_SRC = aspiscan.c dispg.c scache.c tape.c
  58.  
  59. ASPIL_OBJS := o/{$(ASPIL_SRC:s/.c/.obj/)}
  60.  
  61.  
  62. o/%.$(OBJ) : %.c '{$(ASPIL_INC)}' '../lib/defines.h'
  63. .IF $(COMPILER) == GNUC
  64.     $(CC2) $(CFLAGS) -o o/$*.$(OBJ) $<
  65. .ELSE
  66.     $(CC2) $(CFLAGS) -Foo/$*.$(OBJ) $<
  67. .ENDIF
  68.  
  69.  
  70. all: aspio.$(LIB) aspiscan.exe scache.exe tape.exe dispg.exe dispdef.exe \
  71.     cdspeed.exe plxupd.exe
  72.  
  73. .REMOVE:
  74.     @echo Clean $<
  75.  
  76. cleanup:
  77.     rcsclean $(ASPIL_SRC)
  78.     rcsclean $(APP_SRC)
  79. #    rcsclean $(ASPIL_INC)
  80.  
  81.  
  82.  
  83. aspio.$(LIB) .SEQUENTIAL :! $(ASPIL_OBJS)
  84. .IF $(COMPILER) == GNUC
  85.     $(CLIB) r aspio.$(LIB) $?
  86. .ELSE
  87.     $(CLIB) aspio.$(LIB) -+$?;
  88. .ENDIF
  89.  
  90.  
  91. aspiscan.exe: o/aspiscan.$(OBJ) aspio.$(LIB)
  92.     $(CL2VIO) $(CFLAGS) $<
  93.  
  94. dispg.exe: o/dispg.$(OBJ) aspio.$(LIB)
  95.     $(CL2VIO) $(CFLAGS) $<
  96.  
  97. dispdef.exe: o/dispdef.$(OBJ) aspio.$(LIB)
  98.     $(CL2VIO) $(CFLAGS) $<
  99.  
  100. scache.exe: o/scache.$(OBJ) aspio.$(LIB)
  101.     $(CL2VIO) $(CFLAGS) $<
  102.  
  103. tape.exe: o/tape.$(OBJ) aspio.$(LIB)
  104.     $(CL2VIO) $(CFLAGS) $<
  105.  
  106. cdspeed.exe: o/cdspeed.$(OBJ) aspio.$(LIB)
  107.     $(CL2VIO) $(CFLAGS) $<
  108.  
  109. plxupd.exe: o/plxupd.$(OBJ) aspio.$(LIB)
  110.     $(CL2VIO) $(CFLAGS) $<
  111.