Implemented caskd's fix for the Makefile

Argument order matters, and in some systems it ain't compiling, so this
is set in place just for that. Kudos to @casKd-dev
This commit is contained in:
Ty3r0X 2023-12-17 21:11:39 +02:00
parent 144342ab81
commit 9dbcbc62a2
No known key found for this signature in database
GPG Key ID: 1987C830BBC99F38
1 changed files with 2 additions and 2 deletions

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