funni-square/Makefile
Ty3r0X 9dbcbc62a2
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
2023-12-17 21:11:39 +02:00

18 lines
224 B
Makefile

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