# -*- rd -*-

Time-stamp: <2007-11-14 22:17:15 shinya>

= Cue::Tutorial.en

== Make directories

  add---+---src
        |
        +---test

  % mkdir add
  % mkdir add/src add/test

== Write test programs

See the "sample/test/" directory and References.

Test programs are placed under the test directory.

== Write test programs and source programs

See the "sample/src/" directory.

Source programs are placed under the src directory.

== Build and Run

Go to "add" directory, and execute following command.

  [add]% run-cue

You will see the result of tests.

== Advanced Running Cue

Go to "add" directory, Write a Makefile.

  include ${INSTDIR}/share/cue/Makefile.test

  CC = gcc
  SRC = src/add.c
  TESTSRC = test/test_add.c

${INSTDIR} is directory installed Cue.

CC is a compile command.

SRC is source code.

TESTSRC is test code.

== Build and Run by Makefile

Go to "add" directory, and execute following command.

  [add]% make run-cue
