Skip to content
This repository has been archived by the owner on Jan 4, 2021. It is now read-only.

Makefile does not work with gnu make #15

Open
mghansen256 opened this issue Dec 5, 2014 · 0 comments
Open

Makefile does not work with gnu make #15

mghansen256 opened this issue Dec 5, 2014 · 0 comments

Comments

@mghansen256
Copy link

When using gnu make, I have to change line 50 in Grbl9fMega2560/Makefile from
.c.o:
to
%.o: %.cpp
Otherwise, compilation does not work, because the wrong c++ compiler is used, error message below. For which make program is the supplied Makefile?

Best regards,

Michael

Error message:
g++ -c -o main.o main.cpp
In file included from main.cpp:22:0:
system.h:25:20: fatal error: avr/io.h: No such file or directory
#include <avr/io.h>
^
compilation terminated.
: recipe for target 'main.o' failed
make: *** [main.o] Error 1

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant