mirror of
https://github.com/Ty3r0X/funni-square.git
synced 2025-02-17 12:46:55 +00:00
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:
parent
144342ab81
commit
9dbcbc62a2
4
Makefile
4
Makefile
@ -5,13 +5,13 @@ OBJ := $(SRC:.c=.o)
|
|||||||
|
|
||||||
all: $(OBJ) $(OUT)
|
all: $(OBJ) $(OUT)
|
||||||
%.o: %.c
|
%.o: %.c
|
||||||
$(CC) -o $@ -c $(CFLAGS) $<
|
$(CC) $< -c $(CFLAGS) -o "$@"
|
||||||
clean:
|
clean:
|
||||||
rm -f $(OBJ) $(OUT)
|
rm -f $(OBJ) $(OUT)
|
||||||
|
|
||||||
ifneq ($(OUT),)
|
ifneq ($(OUT),)
|
||||||
$(OUT): $(OBJ)
|
$(OUT): $(OBJ)
|
||||||
$(CC) -o "$@" $(LDFLAGS) $^
|
$(CC) $^ $(LDFLAGS) -o "$@"
|
||||||
endif
|
endif
|
||||||
|
|
||||||
.PHONY: all clean
|
.PHONY: all clean
|
||||||
|
Loading…
Reference in New Issue
Block a user