diff options
author | nathan <nathansmith@disroot.org> | 2025-07-03 21:34:28 +0000 |
---|---|---|
committer | nathan <nathansmith@disroot.org> | 2025-07-03 21:34:28 +0000 |
commit | d67fc3baa8180703f2280738d13335cb9665b348 (patch) | |
tree | c336f48d86b7dc6296562a068b4828177b5b47a6 /src/Makefile | |
download | FindThings-d67fc3baa8180703f2280738d13335cb9665b348.tar.gz FindThings-d67fc3baa8180703f2280738d13335cb9665b348.tar.bz2 FindThings-d67fc3baa8180703f2280738d13335cb9665b348.zip |
first commit
Diffstat (limited to 'src/Makefile')
-rw-r--r-- | src/Makefile | 17 |
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) + |