Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CC = cl.exe
- LD = link.exe
- CFLAGS = /nologo /W3 /Iinclude
- LDFLAGS = /nologo /subsystem:console /debug:full
- all: hello.exe
- main.c.o: main.c
- $(CC) $(CFLAGS) /c $** /Fo$@
- hello.c.o: hello.c
- $(CC) $(CFLAGS) /c $** /Fo$@
- world.c.o: world.c
- $(CC) $(CFLAGS) /c $** /Fo$@
- hello.exe: main.c.o hello.c.o world.c.o
- $(LD) $(LDFLAGS) /out:$@ $**
- .PHONY: test
- test: hello.exe
- @echo Testing...
- @hello.exe
- .PHONY: clean
- clean:
- -del hello.exe *.o *.pdb *.ilk
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement