aboutsummaryrefslogtreecommitdiff
path: root/software/helloworld/makefile
diff options
context:
space:
mode:
Diffstat (limited to 'software/helloworld/makefile')
-rw-r--r--software/helloworld/makefile11
1 files changed, 11 insertions, 0 deletions
diff --git a/software/helloworld/makefile b/software/helloworld/makefile
new file mode 100644
index 0000000..0cd6c19
--- /dev/null
+++ b/software/helloworld/makefile
@@ -0,0 +1,11 @@
+CC = $(CROSS_COMPILE)gcc
+
+LFLAGS += -lc
+
+helloworld: main.c
+ $(CC) $^ $(CFLAGS) $(LFLAGS) -o $@
+
+.PHONY: clean
+clean:
+ $(RM) helloworld
+