aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2021-05-28 20:00:08 +0200
committerlonkaars <loek@pipeframe.xyz>2021-05-28 20:00:08 +0200
commit32d9faa16f00ec930a72f5ed2dd0ba00bbfe95ca (patch)
tree266536a28a400d18eb336bbd6ccc7241efe6205c
initial commit
-rw-r--r--.gitignore2
-rw-r--r--makefile18
-rw-r--r--musicopy.c6
3 files changed, 26 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..c107b6e
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,2 @@
+*.o
+musicopy
diff --git a/makefile b/makefile
new file mode 100644
index 0000000..37f7b82
--- /dev/null
+++ b/makefile
@@ -0,0 +1,18 @@
+CC = gcc
+LD = gcc
+RM = rm -f
+CFLAGS =
+
+SOURCES := $(wildcard *.c)
+OBJECTS := $(patsubst %.c,%.o, $(SOURCES))
+
+all: musicopy
+
+voerbak: $(OBJECTS)
+ $(CC) $(OBJECTS) -o musicopy
+
+clean:
+ $(RM) musicopy
+
+distclean: clean
+ $(RM) *.o
diff --git a/musicopy.c b/musicopy.c
new file mode 100644
index 0000000..29fda6e
--- /dev/null
+++ b/musicopy.c
@@ -0,0 +1,6 @@
+#include <stdio.h>
+
+int main() {
+ printf("Hello World!\n");
+ return 0;
+}