home *** CD-ROM | disk | FTP | other *** search
/ Microsoft Internet Business Development Kit / PRODUCT_CD.iso / sqlsvr / ptk / mips / buildn.mak < prev    next >
Encoding:
Makefile  |  1995-06-07  |  708 b   |  30 lines

  1. # BUILDN.MIP - Make file for DB-Library NT examples.
  2. #
  3. #         Copyright (C) 1995 Microsoft Corp.
  4. #
  5.  
  6. LINK         = link.exe
  7. CC           = cl.exe
  8. RC         = rc.exe
  9.  
  10. CFLAGS = -c -W3 -D_MIPS_=1 -DMIPS=1 -DDBNTWIN32 -Ot -DWIN32
  11. LFLAGS = -MACHINE:mips -subsystem:console -entry:mainCRTStartup
  12.  
  13. SYS_LIB_LIST  = kernel32.lib libcmt.lib
  14. DBLIB_LIB = ntwdblib.lib
  15.  
  16. !if  "$(DEBUG_TYPE)" == "debug"
  17. CFLAGS_DEBUG = -Od -Zi
  18. LFLAGS_DEBUG = -debug:full -debugtype:cv
  19. !endif
  20.  
  21. all: $(APP).exe
  22.  
  23. $(APP).exe: $(APP).c
  24.  
  25. # Compile .c file
  26. .c.exe:
  27.     @echo Now creating $(APP).exe...
  28.     $(CC) $(CFLAGS) $(CFLAGS_DEBUG) $*.c
  29.     $(LINK) $(LFLAGS) $(LFLAGS_DEBUG) -out:$*.exe $*.obj $(SYS_LIB_LIST) $(DBLIB_LIB)
  30.