Building Program
As described in previous Test Drive -
Hello World section, to build a project is easy for all required settings
and procedures have been defined in the "Makefile" of target's
directory.
lib/ |
common application library |
cgi/ |
cgi program for HTTP server |
etmd/ |
etmd service. UDP locator. |
siod/ |
TCP/UDP to serial converter |
example/ |
program examples |
cgidemo/ |
CGI examples |
To build a project:
Change
working directory to the project. (e.g. cd prj/app/cgi)
Build
it by 'make'.
Dependency:
The lib/lib.c is a static link library which is used by all applications. If lib.c is changed, other projects should be rebuilt to update the changes.
CFLAGS: compiler option
-Wall
Enable most common warnings. This is the
default settings in our projects.
-O2
Enable optimization. The optimization is
not safe and some programs experienced problems. The project default is no
optimization.
UCFLAGS: linker option
-Wl, -elf2flt
Convert ELF relocation format into FLAT
format which is required for uClinux.