15 lines
347 B
Text
15 lines
347 B
Text
OFILES = ${CFILES:%.c=%.o}
|
|
TARG = exe/$PROGNAME
|
|
CFLAGS = $CPPFLAGS $DEFS $INCS $CFLAGS
|
|
all :V: $TARG
|
|
strip :V: $TARG.strip
|
|
$TARG.strip : $TARG
|
|
cp -f $TARG $target
|
|
$STRIP $target
|
|
$TARG : $OFILES
|
|
mkdir -p exe
|
|
$LD -o $target $LDFLAGS $OFILES $AFILES $LIBS
|
|
%.o : %.c $HFILES
|
|
$CC -c -o $target $CFLAGS $stem.c
|
|
run :V: $TARG
|
|
exec ./$TARG $MKFLAGS
|