mirror of
https://github.com/onyx-and-iris/vmrcli.git
synced 2025-02-22 09:45:25 +00:00
add INC_DIR
This commit is contained in:
parent
95820c3043
commit
8e37cec719
@ -9,10 +9,11 @@ vars:
|
||||
CC: gcc
|
||||
|
||||
SRC_DIR: src
|
||||
INC_DIR: include
|
||||
OBJ_DIR: obj
|
||||
BIN_DIR: bin
|
||||
|
||||
CPPFLAGS: -Iinclude -MMD -MP {{if eq .LOG_USE_COLOR "yes"}}-DLOG_USE_COLOR{{end}}
|
||||
CPPFLAGS: -I{{.INC_DIR}} -MMD -MP {{if eq .LOG_USE_COLOR "yes"}}-DLOG_USE_COLOR{{end}}
|
||||
|
||||
CFLAGS: -O -Wall -W -pedantic -ansi -std=c2x
|
||||
LDFLAGS: -Llib
|
||||
@ -55,10 +56,10 @@ tasks:
|
||||
{{.SHELL}} -Command
|
||||
"Get-ChildItem -Path '{{.SRC_DIR}}' -Filter '*.c' |
|
||||
ForEach-Object { \$_.Name -replace '\.c$', '' } |
|
||||
ForEach-Object { {{.CC}} {{.CPPFLAGS}} {{.CFLAGS}} -c {{.SRC_DIR}}/\$_.c -Iinclude -o {{.OBJ_DIR}}/\$_.o }"
|
||||
ForEach-Object { {{.CC}} {{.CPPFLAGS}} {{.CFLAGS}} -c {{.SRC_DIR}}/\$_.c -o {{.OBJ_DIR}}/\$_.o }"
|
||||
sources:
|
||||
- '{{.SRC_DIR}}/**'
|
||||
- include/**
|
||||
- '{{.INC_DIR}}/**'
|
||||
generates:
|
||||
- '{{.OBJ_DIR}}/**'
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user