Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[tinydtls-dev] cleaning ecc directory

Hi,
In the Makefile of ecc directory, the objects generation tag is ECC_OBJECTS whereas in make clean is is OBJECTS. hence as a result, make clean doesn't clean the .o files that has been created. Hence it needs to be fixed.

Thanks & Regards
Anupam Datta

anupam@anupam:~org.eclipse.tinydtls/ecc$ ls
ecc.c  ecc.h  ecc_test.o  Makefile  Makefile.contiki  Makefile.ecc  Makefile.in  testecc.c  testfield.c  test_helper.c  test_helper.h  test_helper.o
anupam@anupam:~org.eclipse.tinydtls/ecc$ make clean
for dir in ; do \
make -C $dir clean ; \
done
anupam@anupam:~org.eclipse.tinydtls/ecc$ ls
ecc.c  ecc.h  ecc_test.o  Makefile  Makefile.contiki  Makefile.ecc  Makefile.in  testecc.c  testfield.c  test_helper.c  test_helper.h  test_helper.o



makefile :
ECC_OBJECTS:= $(patsubst %.c, %.o, $(ECC_SOURCES)) ecc_test.o

clean:
        @rm -f $(PROGRAMS) main.o $(LIB) $(OBJECTS) /*should be ECC_OBJECTS*/
        for dir in $(SUBDIRS); do \
                $(MAKE) -C $$dir clean ; \
        done


Back to the top