aboutsummaryrefslogtreecommitdiffstats
path: root/demos/Posix-GCC
diff options
context:
space:
mode:
Diffstat (limited to 'demos/Posix-GCC')
-rw-r--r--demos/Posix-GCC/Makefile4
-rw-r--r--demos/Posix-GCC/main.c2
2 files changed, 4 insertions, 2 deletions
diff --git a/demos/Posix-GCC/Makefile b/demos/Posix-GCC/Makefile
index f5eae1c05..5d77f6a8e 100644
--- a/demos/Posix-GCC/Makefile
+++ b/demos/Posix-GCC/Makefile
@@ -132,10 +132,10 @@ CPFLAGS += -MD -MP -MF .dep/$(@F).d
all: $(OBJS) $(PROJECT)
-%o : %c
+%.o : %.c
$(CC) -c $(CPFLAGS) -I . $(INCDIR) $< -o $@
-%o : %s
+%.o : %.s
$(AS) -c $(ASFLAGS) $< -o $@
$(PROJECT): $(OBJS)
diff --git a/demos/Posix-GCC/main.c b/demos/Posix-GCC/main.c
index 7514faebf..d4ed8f9c8 100644
--- a/demos/Posix-GCC/main.c
+++ b/demos/Posix-GCC/main.c
@@ -18,6 +18,8 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
+#include <stdio.h>
+
#include "ch.h"
#include "hal.h"
#include "test.h"