mirror of
https://github.com/vim/vim.git
synced 2025-11-15 23:14:06 -05:00
Problem: MS-Windows: Makefiles can be refactored
Solution: Refactor using a common tools.mak, make some style changes
(RestorerZ).
closes: #18060
Signed-off-by: RestorerZ <restorer@mail2k.ru>
Signed-off-by: Christian Brabandt <cb@256bit.org>
25 lines
449 B
Makefile
25 lines
449 B
Makefile
# A very (if not the most) simplistic Makefile for MSVC
|
|
|
|
# included common tools
|
|
!INCLUDE ..\auto\nmake\tools.mak
|
|
|
|
SUBSYSTEM = console
|
|
!IF "$(SUBSYSTEM_VER)" != ""
|
|
SUBSYSTEM = $(SUBSYSTEM),$(SUBSYSTEM_VER)
|
|
!ENDIF
|
|
|
|
CC=cl
|
|
CFLAGS=/O2 /nologo
|
|
|
|
tee.exe: tee.obj
|
|
$(CC) $(CFLAGS) /Fo$@ $** /link /subsystem:$(SUBSYSTEM)
|
|
|
|
tee.obj: tee.c
|
|
$(CC) $(CFLAGS) /c $**
|
|
|
|
clean:
|
|
- $(RM) tee.obj
|
|
- $(RM) tee.exe
|
|
|
|
# vim: set noet sw=8 ts=8 sts=0 wm=0 tw=79 ft=make:
|