mirror of
git://projects.qi-hardware.com/nn-usb-fpga.git
synced 2025-04-21 12:27:27 +03:00
Adding LUA tutorials: lua_calls_C1 - lua_calls_C5
Adding blinker demo: lua_blink_led
This commit is contained in:
23
lua/examples/lua_calls_C1/Makefile
Normal file
23
lua/examples/lua_calls_C1/Makefile
Normal file
@@ -0,0 +1,23 @@
|
||||
CC = mipsel-openwrt-linux-gcc
|
||||
CXX = mipsel-openwrt-linux-g++
|
||||
OPENWRT_BUILD_DIR = /home/cain/Embedded/ingenic/sakc/build/openwrt-xburst/staging_dir/target-mipsel_uClibc-0.9.30.1
|
||||
INCLUDE = -I. -I$(OPENWRT_BUILD_DIR)/usr/include/
|
||||
WARNINGS = -Wcast-align -Wpacked -Wpadded -Wall
|
||||
CCFLAGS = ${INCLUDE} ${DEBUG} ${WARNINGS} -std=c99 -fPIC
|
||||
LDFLAGS =
|
||||
DEBUG = -O3 -g0
|
||||
NANO_PATH = root@192.168.254.101:
|
||||
TARGET = fromlua
|
||||
|
||||
$(TARGET): $(TARGET)
|
||||
$(CC) $(CCFLAGS) -o $(TARGET).so -shared $(TARGET).c
|
||||
|
||||
.c.o:
|
||||
$(CC) -c $(CCFLAGS) -o $@
|
||||
|
||||
upload: $(TARGET)
|
||||
scp $(TARGET).so top1.lua $(NANO_PATH)
|
||||
|
||||
|
||||
clean:
|
||||
rm -f *.o $(TARGET).so
|
||||
Reference in New Issue
Block a user