aboutsummaryrefslogtreecommitdiffstats
path: root/src/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'src/Makefile')
-rw-r--r--src/Makefile17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/Makefile b/src/Makefile
new file mode 100644
index 0000000..b0b0677
--- /dev/null
+++ b/src/Makefile
@@ -0,0 +1,17 @@
+CFLAGS = -Isrc -I../include -std=gnu99
+LDFLAGS = -lm -lraylib
+
+TARGET = FindThings
+SOURCES = $(shell find -name "*.c")
+OBJECTS = $(SOURCES:.c=.o)
+
+%.o: %.c
+ $(CC) -c $(CFLAGS) -o $@ $<
+$(TARGET): $(OBJECTS)
+ $(CC) $(CFLAGS) -o $(TARGET) $(OBJECTS) $(LDFLAGS)
+
+.PHONY: clean
+clean:
+ rm *.o
+ rm $(TARGET)
+