diff --git a/.gitignore b/.gitignore index a0554cd..bf1a349 100644 --- a/.gitignore +++ b/.gitignore @@ -24,3 +24,6 @@ host/inlretro # OS X Metadata .DS_Store + +# VSCode Metadata +.vscode \ No newline at end of file diff --git a/host/Makefile b/host/Makefile index 6ef0497..01ad3b2 100644 --- a/host/Makefile +++ b/host/Makefile @@ -1,6 +1,6 @@ #compiler flags: -Wall Warnings all, -g gdb debug markings, CFLAGS=-Wall -O -LDFLAGS= -llua -lusb-1.0 -Lsource/lua +LDFLAGS= -llua -lusb-1.0 -Lsource/lua -lm INCLUDE= -I ./include -I ../shared LDFLAGS_WINDOWS= -L ./winlib $(LDFLAGS) LDFLAGS_UNIX= -lm $(LDFLAGS) @@ -35,6 +35,9 @@ all: liblua $(DEPS) $(OBJECTS) unix: liblua $(DEPS) $(OBJECTS) $(CC) $(INCLUDE) $(OBJECTS) -o $(TARGET) $(CFLAGS) $(LDFLAGS_UNIX) +linux: + gcc source/inlprog.c source/usb_operations.c -o inlretro -lusb-1.0 -lm -L lua include + # "make debug" will build program with debug print messages # -DDEBUG show debug logs # -g build with gdb debug tags diff --git a/host/scripts/inlretro2.lua b/host/scripts/inlretro2.lua index c16acc5..23ececd 100644 --- a/host/scripts/inlretro2.lua +++ b/host/scripts/inlretro2.lua @@ -108,7 +108,7 @@ function main() dump_filename = dump_filename, erase = do_erase, program = do_program, - program_filename = flash_filename, + flash_filename = flash_filename, verify = do_verify, verify_filename = verify_filename, dumpram = do_dumpram,