cleaned up a bit

This commit is contained in:
2021-09-17 09:25:36 +10:00
parent 88524eea4c
commit ad7b81f448
11 changed files with 155 additions and 146 deletions

View File

@ -8,10 +8,10 @@ CFLAGS = -g -Wall
default: $(TARGET)
all: default
OBJECTS = $(patsubst %.c, %.o, $(wildcard *.c))
OBJECTS = $(patsubst src/%.c, %.o, $(wildcard src/*.c))
HEADERS = $(wildcard *.h)
%.o: %.c $(HEADERS)
%.o: src/%.c $(HEADERS)
$(CC) $(CFLAGS) -c $< -o $@
.PRECIOUS: $(TARGET) $(OBJECTS)