19 lines
405 B
Makefile
Executable file
19 lines
405 B
Makefile
Executable file
MAKEFLAGS += --no-builtin-rules
|
|
MAKEFLAGS += --no-builtin-variables
|
|
SRC=$(wildcard *.cpp)
|
|
TAR=$(SRC:.cpp=)
|
|
|
|
NEEDLIB=mysql sqlite yaml
|
|
TAR:=$(filter-out $(NEEDLIB),$(TAR))
|
|
|
|
%:%.cpp
|
|
cl /Fe:${CURDIR}/$@.exe /nologo /wd4819 $< /EHsc -I ../..
|
|
@echo ============ run $@.exe ================
|
|
@$@.exe
|
|
@del $@.exe $@.obj
|
|
|
|
tar:$(TAR)
|
|
@echo -------test done-------
|
|
|
|
clean:
|
|
@-del *.obj *.exe
|