mirror of https://github.com/joan2937/pigpio
Strip executables explicitly
Do not strip in install, because install is not aware of cross-compilation. VBy explicitly stripping executables using a make var that can be overridden, the build is more friendly to cross-compilers.
This commit is contained in:
parent
2c6de54726
commit
cf372fa5db
9
Makefile
9
Makefile
|
@ -60,12 +60,15 @@ x_pigpiod_if2: x_pigpiod_if2.o $(LIB3)
|
||||||
|
|
||||||
pigpiod: pigpiod.o $(LIB1)
|
pigpiod: pigpiod.o $(LIB1)
|
||||||
$(CC) -o pigpiod pigpiod.o $(LL1)
|
$(CC) -o pigpiod pigpiod.o $(LL1)
|
||||||
|
$(STRIP) pigpiod
|
||||||
|
|
||||||
pigs: pigs.o command.o
|
pigs: pigs.o command.o
|
||||||
$(CC) -o pigs pigs.o command.o
|
$(CC) -o pigs pigs.o command.o
|
||||||
|
$(STRIP) pigs
|
||||||
|
|
||||||
pig2vcd: pig2vcd.o
|
pig2vcd: pig2vcd.o
|
||||||
$(CC) -o pig2vcd pig2vcd.o
|
$(CC) -o pig2vcd pig2vcd.o
|
||||||
|
$(STRIP) pig2vcd
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f *.o *.i *.s *~ $(ALL)
|
rm -f *.o *.i *.s *~ $(ALL)
|
||||||
|
@ -81,9 +84,9 @@ install: $(ALL)
|
||||||
install -m 0755 libpigpiod_if.so $(DESTDIR)$(libdir)
|
install -m 0755 libpigpiod_if.so $(DESTDIR)$(libdir)
|
||||||
install -m 0755 libpigpiod_if2.so $(DESTDIR)$(libdir)
|
install -m 0755 libpigpiod_if2.so $(DESTDIR)$(libdir)
|
||||||
install -m 0755 -d $(DESTDIR)$(bindir)
|
install -m 0755 -d $(DESTDIR)$(bindir)
|
||||||
install -m 0755 -s pig2vcd $(DESTDIR)$(bindir)
|
install -m 0755 pig2vcd $(DESTDIR)$(bindir)
|
||||||
install -m 0755 -s pigpiod $(DESTDIR)$(bindir)
|
install -m 0755 pigpiod $(DESTDIR)$(bindir)
|
||||||
install -m 0755 -s pigs $(DESTDIR)$(bindir)
|
install -m 0755 pigs $(DESTDIR)$(bindir)
|
||||||
if which python2; then python2 setup.py install; fi
|
if which python2; then python2 setup.py install; fi
|
||||||
if which python3; then python3 setup.py install; fi
|
if which python3; then python3 setup.py install; fi
|
||||||
install -m 0755 -d $(DESTDIR)$(mandir)/man1
|
install -m 0755 -d $(DESTDIR)$(mandir)/man1
|
||||||
|
|
Loading…
Reference in New Issue