mirror of
https://github.com/Ty3r0X/funni-square.git
synced 2024-12-17 20:54:49 +00:00
Ty3r0X
9dbcbc62a2
Argument order matters, and in some systems it ain't compiling, so this is set in place just for that. Kudos to @casKd-dev
18 lines
224 B
Makefile
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
|