Merge branch 'main' of github.com:Ty3r0X/funni-square

This commit is contained in:
Ty3r0X 2023-12-19 12:28:27 +02:00
commit 00e6367402

View File

@ -5,13 +5,13 @@ OBJ := $(SRC:.c=.o)
all: $(OBJ) $(OUT)
%.o: %.c
$(CC) -o $@ -c $(CFLAGS) $<
$(CC) $< -c $(CFLAGS) -o "$@"
clean:
rm -f $(OBJ) $(OUT)
ifneq ($(OUT),)
$(OUT): $(OBJ)
$(CC) -o "$@" $(LDFLAGS) $^
$(CC) $^ $(LDFLAGS) -o "$@"
endif
.PHONY: all clean