Skip to content
This repository has been archived by the owner on Mar 17, 2021. It is now read-only.

Janitoring and Sanity release

Compare
Choose a tag to compare
@jsarenik jsarenik released this 21 Apr 14:56
· 2 commits to master since this release

This release changes Makefile to clean all the generated files.

$ export CC=arm-linux-gnueabihf-gcc
$ export CFLAGS='-march=armv7-a -mtune=cortex-a7 -static'
$ make
arm-linux-gnueabihf-gcc -march=armv7-a -mtune=cortex-a7 -static -I. -Wall   -c -o eeprog.o eeprog.c
arm-linux-gnueabihf-gcc -march=armv7-a -mtune=cortex-a7 -static -I. -Wall   -c -o 24cXX.o 24cXX.c
arm-linux-gnueabihf-gcc   eeprog.o 24cXX.o   -o eeprog
$ ls
24cXX.c  24cXX.o    eeprog    eeprog.o   Makefile  WARNING
24cXX.h  ChangeLog  eeprog.c  i2c-dev.h  README
$ make eeprog-static
arm-linux-gnueabihf-gcc -static -o eeprog-static eeprog.o 24cXX.o
$ arm-linux-gnueabihf-strip eeprog eeprog-static
$ ls -l eeprog eeprog-static
-rwxr-xr-x 1 jasan jasan 11840 Apr 21 16:55 eeprog
-rwxr-xr-x 1 jasan jasan 493056 Apr 21 16:55 eeprog-static
$ make clean
rm -fv eeprog eeprog-static eeprog.o 24cXX.o
removed 'eeprog'
removed 'eeprog-static'
removed 'eeprog.o'
removed '24cXX.o'