23 lines
451 B
Batchfile
23 lines
451 B
Batchfile
@echo off
|
|
|
|
set code=%cd%
|
|
set opts=-g
|
|
set linkopts=-Xlinkker -INCREMENTAL:NO
|
|
set inc=-I%code%\symbol_set
|
|
|
|
if not exist "build" ( mkdir build )
|
|
pushd build
|
|
|
|
if "%1" == "" (
|
|
clang -o example1 %code%\examples\example1.c %opts% %inc% %linkopts%
|
|
)
|
|
if "%1" == "stack_machine" (
|
|
clang -o stack_machine %code%\examples\stack_machine.c %opts% %inc% %linkopts%
|
|
)
|
|
if "%1" == "hooks" (
|
|
clang -o hooks %code%\examples\hooks.c %opts% %inc% %linkopts%
|
|
)
|
|
|
|
popd
|
|
|