about summary refs log tree commit diff stats
path: root/subx/dgen
blob: c4afbfb28ef9493112de1dadfe3382a042062314 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
#!/usr/bin/env zsh
# Build commonly-used SubX programs in 'debug mode'.

if [[ $1 == 'ex'* ]]
then
  CFLAGS=-g ./subx --map translate examples/$1.subx -o examples/`echo $1 |sed 's/\..*//'`
  exit $?
fi

CFLAGS=-g ./subx --map translate *.subx apps/$1.subx  -o apps/`echo $1 |sed 's/\..*//'`
exit $?