CC=arm-linux-gnueabihf-gcc
#STRIP=arm-linux-gnueabihf-strip


all:
	$(CC) -fPIC -c mx_led.c -o mx_led.o
	$(CC) -shared -Wl,-soname,libmx_led.so.1 -o libmx_led.so.1.0.0 mx_led.o
	ln -sf libmx_led.so.1.0.0 libmx_led.so.1
	ln -sf libmx_led.so.1 libmx_led.so
	$(CC) push_btn.c -L. -lmx_led -o push_btn
#	$(STRIP) -s push_btn

clean:
	rm -rf push_btn 2>&1 >/dev/null
	rm -rf libmx_led.so* 2>&1 >/dev/null
