Bir TS-7800 (SBC) üzerinde bir program yapıyorum ve make (aşağıdan göster) komutunu çalıştırdığımda, tüm adımların normal olarak gerçekleştiği görülüyor, ancak sonunda ikili bir dosya alamıyorum. Neden bu ve dosyamı nasıl alabilirim.
makefile
CC= /home/eclipse/ReidTest/cc/cross-toolchains/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-gcc
# compiler options
#CFLAGS= -O2
CFLAGS= -mcpu=arm9
#CFLAGS= -pg -Wall
# linker
LN= $(CC)
# linker options
LNFLAGS=
#LNFLAGS= -pg
# extra libraries used in linking (use -l command)
LDLIBS= -lpthread
# source files
SOURCES= HMITelem.c Cpacket.c GPS.c ADC.c Wireless.c Receivers.c CSVReader.c RPM.c RS485.c
# include files
INCLUDES= Cpacket.h HMITelem.h CSVReader.h RS485.h
# object files
OBJECTS= HMITelem.o Cpacket.o GPS.o ADC.o Wireless.o Receivers.o CSVReader.o RPM.o RS485.o
HMITelem: $(OBJECTS)
$(LN) $(LNFLAGS) -o $@ $(OBJECTS) $(LDLIBS)
.c.o: $*.c
$(CC) $(CFLAGS) -c $*.c
RUN : ./HMITelem
#clean:
# rm -f *.o
# rm -f *~
Çıktı
root@ts7800:ReidTest# make
/home/eclipse/ReidTest/cc/cross-toolchains/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-gcc -mcpu=arm9 -c HMITelem.c
/home/eclipse/ReidTest/cc/cross-toolchains/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-gcc -mcpu=arm9 -c Cpacket.c
/home/eclipse/ReidTest/cc/cross-toolchains/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-gcc -mcpu=arm9 -c GPS.c
/home/eclipse/ReidTest/cc/cross-toolchains/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-gcc -mcpu=arm9 -c ADC.c
/home/eclipse/ReidTest/cc/cross-toolchains/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-gcc -mcpu=arm9 -c Wireless.c
/home/eclipse/ReidTest/cc/cross-toolchains/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-gcc -mcpu=arm9 -c Receivers.c
/home/eclipse/ReidTest/cc/cross-toolchains/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-gcc -mcpu=arm9 -c CSVReader.c
/home/eclipse/ReidTest/cc/cross-toolchains/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-gcc -mcpu=arm9 -c RPM.c
/home/eclipse/ReidTest/cc/cross-toolchains/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-gcc -mcpu=arm9 -c RS485.c
/home/eclipse/ReidTest/cc/cross-toolchains/arm-none-linux-gnueabi/bin/arm-none-linux-gnueabi-gcc -o HMITelem HMITelem.o Cpacket.o GPS.o ADC.o Wireless.o Receivers.o CSVReader.o RPM.o RS485.o -lpthread
Teşekkür ederim.
>
Alıntı kodu için 4 boşlukla girin.