7
mirror of https://github.com/EEVengers/ThunderScope.git synced 2025-04-22 17:43:44 +00:00

Re-ordering gcc command

-l<library> commands should be end of the gcc command
so that the linker knows what references to search for.
Had problems on ubuntu with gcc version 9.3.0.
These problems didn't show up on Manjaro with gcc 10.2.0

Also added compile_commands.json to gitignore. It provides lsp support
This commit is contained in:
Alex Vandenberg 2020-09-30 14:15:23 -04:00
parent 0c6d3906a8
commit b6519b72de
3 changed files with 9 additions and 6 deletions
.gitignore
Software/scope_link

3
.gitignore vendored
View File

@ -3,3 +3,6 @@
# vim specifc
tags
# clangd compile commands generated by bear for clangd lsp use
compile_commands.json

View File

@ -14,19 +14,19 @@ target = scope
all: gen
gen:
${CC} ${lib} ${CCFLAGS} ${target} ${soruce}
${CC} ${CCFLAGS} ${target} ${soruce} ${lib}
echo "Finished Making ${target}"
debug:
${CC} ${lib} ${CCFLAGS_debug} ${target} ${soruce}
${CC} ${CCFLAGS_debug} ${target} ${soruce} ${lib}
@echo "Made Debug"
fast:
${CC} ${lib} ${CCFLAGS_fast} ${target} ${soruce}
${CC} ${CCFLAGS_fast} ${target} ${soruce} ${lib}
@echo "Made Fast"
super_fast:
${CC} ${lib} ${CCFLAGS_super_fast} ${target} ${soruce}
${CC} ${CCFLAGS_super_fast} ${target} ${soruce} ${lib}
@echo "Made Supra Fast"
clean:

View File

@ -7,8 +7,8 @@ You will need to download and install the D3XX ftdi drivers
* Extract the files to the correct locations
* Run the following commands
```
sudo cp libft3xx.so /usr/lib/
sudo cp libft3xx.so.0.5.21 /usr/lib/
sudo cp libftd3xx.so /usr/lib/
sudo cp libftd3xx.so.0.5.21 /usr/lib/
sudo cp 51-ftd3xx.rules /etc/udev/rules.d/
sudo udevadm control --reload-rules
```