summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLieuwe Rooijakkers <lieuwerooijakkers@gmail.com>2024-07-13 18:16:24 +0200
committerLieuwe Rooijakkers <lieuwerooijakkers@gmail.com>2024-07-13 18:16:24 +0200
commiteba8b972d2bc85b8fe6acff90505116da8e29abd (patch)
tree373520b9d3e3f4e5c49b09cd1878cc8a73868db3
parent54b03f5073f6caa07115c764ee5688bb1cd62468 (diff)
Maakbestand
-rw-r--r--Maakbestand23
l---------[-rw-r--r--]Makefile24
2 files changed, 24 insertions, 23 deletions
diff --git a/Maakbestand b/Maakbestand
new file mode 100644
index 0000000..e760b65
--- /dev/null
+++ b/Maakbestand
@@ -0,0 +1,23 @@
+CC := gcc
+CFLAGS := -Wall -Wextra -std=c11 -O2
+LDFLAGS :=
+
+OBJDIR := obj
+TARGET := drukkedoos
+
+SOURCES := $(shell find src -type f -name '*.c')
+HEADERS := $(shell find src -type f -name '*.h')
+OBJECTS := $(patsubst src/%.c,obj/%.o,$(SOURCES))
+
+.PHONY: all clean
+
+all: $(TARGET)
+
+clean:
+ rm -rf $(OBJDIR) $(TARGET)
+
+$(TARGET): main.c $(OBJECTS)
+ $(CC) -o $@ $^ $(LDFLAGS)
+
+$(OBJECTS): obj/%.o: src/%.c $(HEADERS)
+ $(CC) $(CFLAGS) -c -o $@ $<
diff --git a/Makefile b/Makefile
index e760b65..91eb110 100644..120000
--- a/Makefile
+++ b/Makefile
@@ -1,23 +1 @@
-CC := gcc
-CFLAGS := -Wall -Wextra -std=c11 -O2
-LDFLAGS :=
-
-OBJDIR := obj
-TARGET := drukkedoos
-
-SOURCES := $(shell find src -type f -name '*.c')
-HEADERS := $(shell find src -type f -name '*.h')
-OBJECTS := $(patsubst src/%.c,obj/%.o,$(SOURCES))
-
-.PHONY: all clean
-
-all: $(TARGET)
-
-clean:
- rm -rf $(OBJDIR) $(TARGET)
-
-$(TARGET): main.c $(OBJECTS)
- $(CC) -o $@ $^ $(LDFLAGS)
-
-$(OBJECTS): obj/%.o: src/%.c $(HEADERS)
- $(CC) $(CFLAGS) -c -o $@ $<
+Maakbestand \ No newline at end of file