1 creating & updating makefile, 1 creating & updating makefile -4 – Solvline LemonIDE Ver 1.0e User Manual
Page 28

LemonIDE
TM
User’s Guide
5.3.1 Creating & Updating Makefile
If new source file is created or an existing source file in Project View has been altered, a makefile to compile source
file must be created. Makefile provide in DK Source can be reference to create a new makefile.
Below displays an example of creating a compile environment for makefile for source file, “hello.c” in “src” project,
under “Eddy_APPs”folder.
CROSS = /opt/lemonix/cdt/bin/arm-linux-
LDFLAGS += -L/opt/lemonix/cdt/lib -L/opt/lemonix/cdt/bin
IFLAGS += -I/opt/lemonix/cdt/include -I./include
.
.
.
TARGET = eddy
pinetd def
ddns_agent
\
Upgrade portview upgradetftp
detect
\
udp
rt_test test_rtc
test_sio \
test_adc test_gpio
hello
LIBS
= -lrt SB_APIs/SB_APIs.a
all : $(TARGET)
hello : hello.o
rm -f $@
$(CC) $(CFLAGS) $(LDFLAGS) $(IFLAGS) -o $@ [email protected]
$(STRIP) $@
udp : udp.o
rm -f $@
$(CC) $(CFLAGS) $(LDFLAGS) $(IFLAGS) -o $@ [email protected] $(LIBS)
$(STRIP) $@
.
.
5-4