aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;
+}