Make File Example - Korenix JetBox 8100 User Manual

Embedded linux
Hide thumbs Also See for JetBox 8100:
Table of Contents

Advertisement

5.7 Make File Example

The following Makefile file example codes are copied from the example on
Jetbox8100's CD-ROM.
export TOOLCHAIN :=
/opt/korenix/gcc-4.1.1-glibc-2.3.6/i686-korenix-linux-gnu/bin
export PATH=$(TOOLCHAIN):$(PATH)
export CROSS_COMPILE := i686-korenix-linux-gnu-
CC = i686-korenix-linux-gnu-gcc
CPP = i686-korenix-linux-gnu-gcc
SOURCES = example.c
OBJS = $(SOURCES:.c=.o)
all: example
example: $(OBJS)
$(CC) -o $@ $^ $(LDFLAGS) $(LIBS)
clean:
rm -f $(OBJS) example core *.gdb
36
Figure 5-8 Makefile example
JetBox 8100 User Manaual_Linux_1.1

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Jetbox 8100-lJetbox 8100-lm

Table of Contents