home *** CD-ROM | disk | FTP | other *** search
/ The Developer Connection…ice Driver Kit for OS/2 3 / DEV3-D1.ISO / devtools / toolkt21 / c / samples / hello / hello.mak < prev    next >
Encoding:
Makefile  |  1993-03-12  |  947 b   |  40 lines

  1. #===================================================================
  2. #
  3. #   Hello Make file
  4. #   Copyright 1991 IBM Corporation
  5. #
  6. #===================================================================
  7.  
  8. include ..\ibmsamp.inc
  9.  
  10. CC         = icc /c /Ge /Gd- /Se /Re /ss /Gm+
  11.  
  12. HEADERS = hello.h
  13.  
  14. #-------------------------------------------------------------------
  15. #   A list of all of the object files
  16. #-------------------------------------------------------------------
  17. ALL_OBJ1 = hello.obj
  18.  
  19.  
  20. all: hello.exe
  21.  
  22.  
  23. hello.l: hello.mak
  24.     echo $(ALL_OBJ1)            > hello.l
  25.     echo hello.exe           >> hello.l
  26.     echo hello.map           >> hello.l
  27.     echo $(LIBS)                >> hello.l
  28.     echo hello.def           >> hello.l
  29.  
  30.  
  31.  
  32.  
  33. hello.res: hello.rc hello.ico hello.h
  34.  
  35. hello.obj: hello.c $(HEADERS)
  36.  
  37. hello.exe: $(ALL_OBJ1)  hello.def hello.l hello.res
  38.     $(LINK) @hello.l
  39.     rc -p -x hello.res hello.exe
  40.