home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 8 Other / 08-Other.zip / wpnewf.zip / wpnewf.mak < prev    next >
Text File  |  1993-10-10  |  2KB  |  53 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=D:\som\release1\som.r1\include
  28. HPATH=d:\som\release1\som.r1\include
  29. LIBPATH=D:\TOOLKT21\os2lib
  30.  
  31. #--------------------------------------------
  32. # Compiler/tools Macros
  33. #--------------------------------------------
  34. LINK    = LINK386
  35.  
  36.  
  37. #--------------------------------------------
  38. # List all objects for app
  39. #--------------------------------------------
  40. DLLOBJS = wpnewf.obj
  41.  
  42. #--------------------------------------------
  43. # Make entry point
  44. #--------------------------------------------
  45. all: wpnewf.ih wpnewf.dll
  46.  
  47. wpnewf.ih:  $$(@B).csc
  48.  
  49. wpnewf.obj: $$(@B).c $$(@B).ih $$(@B).h  $$(@B).sc
  50.  
  51. wpnewf.dll: $$(@B).def $(DLLOBJS)
  52.           $(LINK) $(LFLAGS) $(DLLOBJS),$@,$*.Map,$(DEFLIBS),$*.def; > $*.erl
  53.