home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / qsetup.zip / DM2TEST.MAK < prev    next >
Text File  |  1994-03-29  |  2KB  |  57 lines

  1. #--------------------------------------------
  2. # Simplified makefile
  3. #--------------------------------------------
  4. #--------------------------------------------
  5. # Include inference rules and definitions
  6. #--------------------------------------------
  7. !include makedefs.inc
  8.  
  9. .c.obj:
  10. #        $(CCDLL) -I$(HPATH) $*.c 1> $*.err
  11.         $(CCDLL) -I$(HPATH) $*.c 
  12. #        @TYPE $*.err
  13.         @ECHO No Fatal Error for $*.c
  14.  
  15. .csc.ih:
  16.         sc -v -r $*.csc
  17.  
  18. #--------------------------------------------
  19. # Define suffixes
  20. #--------------------------------------------
  21. .SUFFIXES:
  22. .SUFFIXES: .c .obj .dll .csc .sc .h .ih .ph .psc .rc .res .dlg
  23.  
  24. #--------------------------------------------
  25. #  Environment Setup for the component(s).
  26. #--------------------------------------------
  27. SCPATH=m:\TOOLKT21\SC
  28. HPATH=m:\TOOLKT21\c\os2h
  29. LIBPATH=m:\TOOLKT21\os2lib
  30.  
  31. #--------------------------------------------
  32. # Compiler/tools Macros
  33. #--------------------------------------------
  34. LINK    = LINK386
  35.  
  36. #--------------------------------------------
  37. # List all objects for app
  38. #--------------------------------------------
  39. DLLOBJS = DM2Test.obj printf.obj
  40.  
  41. #--------------------------------------------
  42. # Make entry point
  43. #--------------------------------------------
  44. all: DM2Test.ih DM2Test.dll 
  45.  
  46. DM2Test.ih:  $$(@B).csc
  47.  
  48. DM2Test.obj: $$(@B).c $$(@B).ih $$(@B).h  $$(@B).sc
  49.  
  50. DM2Test.dll: $$(@B).def $(DLLOBJS) $$(@B).res  
  51.           $(LINK) $(LFLAGS) $(DLLOBJS),$@,$*.Map,$(DEFLIBS),$*.def; > $*.erl
  52.           rc $*.res $*.dll > $*.erl
  53.  
  54. DM2Test.res: $$(@B).rc
  55.           rc -r $*.rc $*.res > $*.erc
  56.  
  57.