home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 11 / 11.iso / n / n001 / 2.ddi / EXAMPLES / TUTORIAL / CLIENT / CLIENT.MK < prev   
Encoding:
Makefile  |  1989-12-11  |  943 b   |  40 lines

  1. #
  2. # File: tutorial\client\client.mk
  3. # Makefile for the 'tutorial' client program
  4. # This makefile runs in the following environment:
  5. #    NetWare RPC 1.0, NetWare 2.1 or higher, DOS 3.3
  6. #
  7.  
  8. COMMON=..\common
  9. CC=cl
  10. MODEL=S
  11. MLIB=C_LIBS
  12. CFLAGS=/A$(MODEL) /Od
  13. LFLAGS=/SE:256 /STACK:0X1000
  14. RPCC=rpcc
  15. NOBJS=
  16. LIBS=$(MODEL)rpc $(MODEL)nwspx
  17. INCS=
  18. RINCS=
  19.  
  20. database.h: $(COMMON)\database.rpc
  21.     $(RPCC) $(RINCS) /c $(COMMON)\database.rpc /o cstubs.c
  22.  
  23. cstubs.c: $(COMMON)\database.rpc
  24.     $(RPCC) $(RINCS) /c $(COMMON)\database.rpc /o cstubs.c
  25.  
  26. cstubs.obj: cstubs.c database.h
  27.     $(CC) $(CFLAGS) /c $(INCS) cstubs.c
  28.  
  29. client.obj: client.c database.h
  30.     $(CC) $(CFLAGS) /c $(INCS) client.c
  31.  
  32. client.exe: client.obj cstubs.obj
  33. # Create the response file for the linker
  34.     echo client.obj cstubs.obj >client.lnk
  35.     echo client.exe  >>client.lnk
  36.     echo $(LFLAGS)  >>client.lnk
  37.     echo $(LIBS) >>client.lnk 
  38.     link @client.lnk
  39.     erase client.lnk
  40.