Advertisement
Guest User

Untitled

a guest
Jan 19th, 2019
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.47 KB | None | 0 0
  1. CC = cl.exe
  2. LD = link.exe
  3.  
  4. CFLAGS = /nologo /W3 /Iinclude
  5. LDFLAGS = /nologo /subsystem:console /debug:full
  6.  
  7. all: hello.exe
  8.  
  9. main.c.o: main.c
  10. $(CC) $(CFLAGS) /c $** /Fo$@
  11.  
  12. hello.c.o: hello.c
  13. $(CC) $(CFLAGS) /c $** /Fo$@
  14.  
  15. world.c.o: world.c
  16. $(CC) $(CFLAGS) /c $** /Fo$@
  17.  
  18. hello.exe: main.c.o hello.c.o world.c.o
  19. $(LD) $(LDFLAGS) /out:$@ $**
  20.  
  21. .PHONY: test
  22. test: hello.exe
  23. @echo Testing...
  24. @hello.exe
  25.  
  26. .PHONY: clean
  27. clean:
  28. -del hello.exe *.o *.pdb *.ilk
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement