I want to add a TBB dynamic library in Makefile.
I m using .libirml.so in the makefile. It shows the error like that:libirml.so.1 file not recognized: File format not recognized
How to proceed further TO finish the task?
arm-linux-gcc -o hello hello.c
SOURCES=main.c CFLAGS=-c -w -gdwarf-4 -g3 -O0 LDFLAGS= CC= OBJECTS=$(SOURCES:.c=.o) EXECUTABLE=myprogram all: clean $(SOURCES) $(EXECUTABLE) $(EXECUTABLE): $(OBJECTS) $(CC)gcc $(LDFLAGS) $(OBJECTS) -o $@ clean: rm -f $(EXECUTABLE) $(OBJECTS) $(MAKE) .c.o: $(CC)gcc $(CFLAGS) $(LDFLAGS) $< -o $@
amit@ubuntu:~/Downloads/Linux Driver/rts_pstor$ sudo make sed "s/RTSX_MK_TIME/`date +%y.%m.%d.%H.%M`/" timestamp.in > timestamp.h cp -f ./define.release ./define.h make -C /lib/modules/3.16.0-36-generic/build SUBDIRS=/home/amit/Downloads/Linux Driver/rts_pstor modules make[1]: Entering directory `/usr/src/linux-headers-3.16.0-36-generic' arch/x86/Makefile:136: CONFIG_X86_X32 enabled but no binutils support Makefile:652: Cannot use CONFIG_CC_STACKPROTECTOR_REGULAR: -fstack-protector not supported by compiler make[1]: *** No rule to make target `Driver/rts_pstor'. Stop. make[1]: Leaving directory `/usr/src/linux-headers-3.16.0-36-generic' make: *** [default] Error 2 amit@ubuntu:~/Downloads/Linux Driver/rts_pstor$
TARGET_MODULE := rts_pstor EXTRA_CFLAGS := -Idrivers/scsi obj-m += $(TARGET_MODULE).o $(TARGET_MODULE)-objs := rtsx.o rtsx_chip.o rtsx_transport.o rtsx_scsi.o rtsx_card.o \ general.o sd.o xd.o ms.o spi.o default: sed "s/RTSX_MK_TIME/`date +%y.%m.%d.%H.%M`/" timestamp.in > timestamp.h cp -f ./define.release ./define.h make -C /lib/modules/$(shell uname -r)/build SUBDIRS=$(shell pwd) modules debug: sed "s/RTSX_MK_TIME/`date +%y.%m.%d.%H.%M`/" timestamp.in > timestamp.h cp -f ./define.debug ./define.h make -C /lib/modules/$(shell uname -r)/build SUBDIRS=$(shell pwd) modules install: cp $(TARGET_MODULE).ko /lib/modules/$(shell uname -r)/kernel/drivers/scsi -f clean: rm -f *.o *.ko rm -f $(TARGET_MODULE).mod.c