Merge branch 'master' of https://gitlab.com/beyondcoast/INL-retro-progdump into cleanup
This commit is contained in:
commit
d8d610b290
|
|
@ -24,3 +24,6 @@ host/inlretro
|
||||||
|
|
||||||
# OS X Metadata
|
# OS X Metadata
|
||||||
.DS_Store
|
.DS_Store
|
||||||
|
|
||||||
|
# VSCode Metadata
|
||||||
|
.vscode
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
#compiler flags: -Wall Warnings all, -g gdb debug markings,
|
#compiler flags: -Wall Warnings all, -g gdb debug markings,
|
||||||
CFLAGS=-Wall -O
|
CFLAGS=-Wall -O
|
||||||
LDFLAGS= -llua -lusb-1.0 -Lsource/lua
|
LDFLAGS= -llua -lusb-1.0 -Lsource/lua -lm
|
||||||
INCLUDE= -I ./include -I ../shared
|
INCLUDE= -I ./include -I ../shared
|
||||||
LDFLAGS_WINDOWS= -L ./winlib $(LDFLAGS)
|
LDFLAGS_WINDOWS= -L ./winlib $(LDFLAGS)
|
||||||
LDFLAGS_UNIX= -lm $(LDFLAGS)
|
LDFLAGS_UNIX= -lm $(LDFLAGS)
|
||||||
|
|
@ -35,6 +35,9 @@ all: liblua $(DEPS) $(OBJECTS)
|
||||||
unix: liblua $(DEPS) $(OBJECTS)
|
unix: liblua $(DEPS) $(OBJECTS)
|
||||||
$(CC) $(INCLUDE) $(OBJECTS) -o $(TARGET) $(CFLAGS) $(LDFLAGS_UNIX)
|
$(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
|
# "make debug" will build program with debug print messages
|
||||||
# -DDEBUG show debug logs
|
# -DDEBUG show debug logs
|
||||||
# -g build with gdb debug tags
|
# -g build with gdb debug tags
|
||||||
|
|
|
||||||
|
|
@ -108,7 +108,7 @@ function main()
|
||||||
dump_filename = dump_filename,
|
dump_filename = dump_filename,
|
||||||
erase = do_erase,
|
erase = do_erase,
|
||||||
program = do_program,
|
program = do_program,
|
||||||
program_filename = flash_filename,
|
flash_filename = flash_filename,
|
||||||
verify = do_verify,
|
verify = do_verify,
|
||||||
verify_filename = verify_filename,
|
verify_filename = verify_filename,
|
||||||
dumpram = do_dumpram,
|
dumpram = do_dumpram,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue