add makefile to support multiple C files (#1195)

* tcc-based vscode project for windows

Signed-off-by: misterpah <misterpah@gmail.com>

* add makefile to support multiple C files
This commit is contained in:
pah arif
2020-04-12 02:01:28 +08:00
committed by GitHub
parent 5ff5be388f
commit b4af1b2cc0
3 changed files with 21 additions and 1 deletions

View File

@ -16,7 +16,10 @@
{
"label": "build & run",
"type": "shell",
"command": "tcc.exe ${workspaceFolder}\\${fileBasename} -o ${workspaceFolder}\\${fileBasenameNoExtension}.exe -std=c99 -Wall -lmsvcrt -lraylib -lopengl32 -lgdi32 -lkernel32 -lshell32 -luser32 -lwinmm -Wl,-subsystem=gui && ${fileBasenameNoExtension}.exe",
"command": "make.exe all workplaceFolder=${workspaceFolder} outputExe=${workspaceFolderBasename}.exe",
"args":[
"&& ${workspaceFolderBasename}.exe",
],
"options": {
"env":{
"PATH" : "C:\\raylib\\tcc\\;%PATH%"