home *** CD-ROM | disk | FTP | other *** search
/ Beijing Paradise BBS Backup / PARADISE.ISO / software / BBSDOORW / CYRIX100.ZIP / CX486DLC / SRC_MS / MAKEFILE < prev    next >
Encoding:
Text File  |  1994-04-02  |  1.6 KB  |  67 lines

  1. # Makefile for "cyrix.exe" -- a program to set/view the configuration
  2. # registers for the DLC line of Cyrix processors. 
  3. #
  4. # Copyright 1994, by Paul Gortmaker.
  5. #
  6.  
  7. # This is a makefile that can be used with Microsoft's programming
  8. # tools to build "cyrix.exe". Note that I tested it with MS C/C++ v7.0
  9. # and MASM v5.1 -- your mileage may vary.
  10.  
  11. # These *should* be the default definitions of CC, LD and AS for Microsoft's
  12. # "nmake", but we re-define them anyways.
  13.  
  14. CC = cl
  15. LD = link
  16. AS = masm
  17.  
  18. CFLAGS = /c /W3 /WX /AS /FPi
  19. LDFLAGS = /NOI
  20. AFLAGS = /Ml /w1 /z
  21.  
  22. OBJS = cyrix.obj probe.obj enable.obj disable.obj state.obj
  23. LIBS = 
  24.  
  25. # Uncomment the following lines to use assembly for the port I/O.
  26. # Note that this should be faster and make the program smaller (~3%).
  27.  
  28. CFLAGS = $(CFLAGS) /DUSE_ASM_IO
  29. OBJS = $(OBJS) read_reg.obj writ_reg.obj
  30.  
  31. # Uncomment the following lines for optimization.
  32.  
  33. OPTCFLAGS = /nologo /Gs /G2 /Os /Ob2
  34. OPTLDFLAGS = /NOL /E /PACKC
  35. OPTAFLAGS = /t
  36.  
  37. # Uncomment the following lines for debugging.
  38. # (Note that you *should* comment the optimization flags above too.)
  39.  
  40. #DCFLAGS = /Zi /Od
  41. #DLDFLAGS = /CO /INF
  42. #ADFLAGS = /Zi /Zd /v /w2
  43.  
  44. # Useless DOS. Should have a "rm".... grumble.
  45. RM = del
  46.  
  47. # Implicit rules.
  48.  
  49. .asm.obj :
  50.     $(AS) $(OPTAFLAGS) $(AFLAGS) $(ADFLAGS) $*.asm;
  51.  
  52. .c.obj :
  53.     $(CC) $(OPTCFLAGS) $(CFLAGS) $(DCFLAGS) $*.c
  54.  
  55. all: cyrix.exe
  56.  
  57. cyrix.exe: $(OBJS)
  58.     $(LD) $(OPTLDFLAGS) $(LDFLAGS) $(DLDFLAGS) $(OBJS),$(LIBS);
  59.  
  60. clean:
  61.     $(RM) *.obj
  62.     $(RM) *.map
  63.  
  64. spotless: clean
  65.     $(RM) cyrix.exe
  66.     $(RM) *.bak
  67.