home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / ddkx86v5.zip / DDKX86 / SRC / DEV / CLOCK / CLOCK01 / MAKEFILE < prev   
Encoding:
Text File  |  1995-04-14  |  2.4 KB  |  97 lines

  1. #******************************************************************************
  2. #  Makefile for the CLOCK\CLOCK01 directory
  3. #
  4. #       SCCSID = @(#)makefile    6.4 92/01/10
  5. #
  6. #       IBM/Microsoft Confidential
  7. #
  8. #       Copyright (c) IBM Corporation 1987, 1989
  9. #       Copyright (c) Microsoft Corporation 1987, 1989
  10. #
  11. #       All Rights Reserved
  12. #
  13. #******************************************************************************
  14.  
  15. #
  16. # Compiler Location w/ includes, libs and tools
  17. #
  18.  
  19. H   = ..\..\..\..\h;
  20. INC = ..\..\..\..\inc;
  21. LIB = ..\..\..\..\lib;
  22. TOOLSPATH = ..\..\..\..\tools
  23.  
  24. #
  25. # Since the compiler/linker and other tools use environment
  26. # variables ( INCLUDE, LIB, etc ) in order to get the location of files,
  27. # the following line will check the environment for the LIFE of the
  28. # makefile and will be specific to this set of instructions. All MAKEFILES
  29. # are requested to use this format to insure that they are using the correct
  30. # level of files and tools.
  31. #
  32.  
  33. !if [set INCLUDE=$(H);$(INC)] || [set LIB=$(LIB)] || [set PATH=$(TOOLSPATH)]
  34. !endif
  35.  
  36.  
  37. .SUFFIXES:
  38. .SUFFIXES:      .c .asm .obj .lst .def .lnk .lrf .exe .com
  39.  
  40. DRV=01
  41.  
  42. ASM=    masm
  43. !ifndef smp
  44. AFLAGS= -Mx -t $(GAFLAGS)
  45. !else
  46. AFLAGS= -Mx -t $(GAFLAGS) -DSMP
  47. !endif
  48. AINC=   -I. -I.. -I../../../../inc -I../../../dos/dosinc
  49.  
  50. ######  Definitions for linker
  51.  
  52. LINK=   link
  53. LFLAGS= /exepack /align:2
  54. LIBS=
  55. LNK=    clock$(DRV).lnk
  56. DEF=    ../clockdd.def
  57.  
  58. ######  List of object files required
  59.  
  60. OBJ=    ../clockdd.obj clock$(DRV).obj ../ptdbeep.obj ../clkvdm.obj \
  61.         ../ptvdm.obj ../ptt0.obj
  62.  
  63.  
  64.  
  65. #       Rules for generating object and linker response and definition files
  66.  
  67. .asm.obj:
  68.         $(ASM) $(AFLAGS) $(AINC) -p $*.asm,$*.obj;
  69.  
  70. .asm.lst:
  71.         $(ASM) -l -n $(AFLAGS) $(AINC) $*.asm;
  72.  
  73. .lnk.lrf:
  74.         tresp $*.lnk $*.lrf
  75.  
  76. # Dependency Target Section
  77.  
  78. !     if [ if exist depchk del depchk dephold depend.mak ] || \
  79.          [ if not exist depend.mak touch depend.mak & $(MAKE) -a depend.mak ]
  80. !     endif
  81.  
  82.  
  83. dep:    depend.mak
  84.         -del dephold
  85.         $(MAKE) -$(MAKEFLAGS) all $(MAKEOPTS)
  86.  
  87. #       Rules for building .exe .com go here
  88.  
  89. all:    clock$(DRV).sys
  90.  
  91. clock$(DRV).sys: $(OBJ) $(LIBS) $(LNK) $(DEF) makefile
  92.         $(LINK) $(LFLAGS) @$(LNK);
  93.         mapsym clock$(DRV)
  94.  
  95.  
  96. #****************************************************************************
  97.