1# A very (if not the most) simplistic Makefile for MSVC 2 3SUBSYSTEM = console 4!if "$(SUBSYSTEM_VER)" != "" 5SUBSYSTEM = $(SUBSYSTEM),$(SUBSYSTEM_VER) 6!endif 7 8CC=cl 9CFLAGS=/O2 /nologo 10 11tee.exe: tee.obj 12 $(CC) $(CFLAGS) /Fo$@ $** /link /subsystem:$(SUBSYSTEM) 13 14tee.obj: tee.c 15 $(CC) $(CFLAGS) /c $** 16 17clean: 18 - del tee.obj 19 - del tee.exe 20