diff options
author | root <root@ka-ata-killa.panaceas.james.internal> | 2022-04-09 11:57:42 +0100 |
---|---|---|
committer | root <root@ka-ata-killa.panaceas.james.internal> | 2022-04-09 11:57:42 +0100 |
commit | 338dcccc8d8532a446fa60dc65092b5510c06e3a (patch) | |
tree | 85c40cfec1a44b43a278d164f6a6c20576fd8aba /Makefile | |
parent | c44cf3a3f0a73ad276c0316759fcb0d8a0d22032 (diff) | |
download | galaxy_sia-master.tar.gz galaxy_sia-master.tar.bz2 galaxy_sia-master.zip |
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 26 |
1 files changed, 17 insertions, 9 deletions
@@ -3,12 +3,15 @@ PKG_CONFIG=pkg-config CURSES_CFLAGS=$(shell ${PKG_CONNFIG} --cflags ncursesw) CURSES_LIBS=$(shell ${PKG_CONFIG} --libs ncursesw) -#OPENWRT_BASE=/root/projects/openwrt/gl-inet-mt300n-v2/master-d20f4fc -#TOOLCHAIN=${OPENWRT_BASE}/staging_dir/toolchain-mipsel_24kc_gcc-7.3.0_musl -#CC=${TOOLCHAIN}/bin/mipsel-openwrt-linux-musl-gcc -#STAGING_DIR=${OPENWRT_BASE}/staging_dir/target-mipsel_24kc_musl -#export STAGING_DIR -#CFLAGS=-I${STAGING_DIR}/include -I${TOOLS_DIR}/include +ifeq (${STAGING_DIR},) + OPENWRT_BASE=/root/projects/openwrt/gl-inet-mt300n-v2/master-d20f4fc + TOOLCHAIN=${OPENWRT_BASE}/staging_dir/toolchain-mipsel_24kc_gcc-7.3.0_musl + CC=${TOOLCHAIN}/bin/mipsel-openwrt-linux-musl-gcc + STAGING_DIR:=${OPENWRT_BASE}/staging_dir/target-mipsel_24kc_musl + export STAGING_DIR + CFLAGS=-I${STAGING_DIR}/include -I${TOOLS_DIR}/include + LDFLAGS= +endif PROGS=net_rx net_arm serial_rx serial_arm serial_keypad net_keypad #test_email @@ -20,9 +23,9 @@ install: ${PROGS} mkdir -p ${DESTDIR}/${PREFIX}/bin for i in ${PROGS}; do install -m 755 $$i ${DESTDIR}/${PREFIX}/bin/$$i; done -net_rx:util.o sia.o net_rx.o rx.o email.o -net_arm:util.o sia.o net_arm.o arm.o -serial_rx:util.o sia.o serial_rx.o rx.o email.o +net_rx:util.o sia.o net_rx.o rx.o email.o mqtt.o +net_arm:util.o sia.o net_arm.o arm.o +serial_rx:util.o sia.o serial_rx.o rx.o email.o mqtt.o serial_arm:util.o sia.o serial_arm.o arm.o test_email:test_email.o email.o @@ -37,3 +40,8 @@ tidy: clean: /bin/rm -f *.o + +deploy: + rsync net_rx galaxy:/usr/bin/net_rx + ssh galaxy killall net_rx + ssh galaxy killall sleep |