fork download
  1. # specify our source files:
  2. SRCS = a.cpp b.cpp c.pp
  3.  
  4. # specify our object files:
  5. OBJS = a.obj b.obj c.obj
  6.  
  7. # specify the compiler flags:
  8. CFLAGS = -O2
  9.  
  10. # specify the command for the compiler
  11. CC = cl
  12.  
  13. #specify the linker flags:
  14. LFLAGS = -linkreallywell
  15.  
  16. # specify how to generate the final result file:
  17. # note this must be the first target specified
  18. prog.exe: OBJS
  19. $(CC) $(LFLAGS) OJBS
  20.  
  21. # From here is probably isn't needed with most makes, because it'll
  22. # already be built in.
  23.  
  24. # get make to recognize the `.cpp` suffix
  25. .SUFFIXES: .cpp
  26.  
  27. # specify how to compile a .cpp file to produce a .obj file
  28. .cpp.obj:
  29. $(CC) $(CFLAGS) $*.cpp
Not running #stdin #stdout 0s 0KB
stdin
Standard input is empty
stdout
Standard output is empty