mirror of
https://github.com/Ty3r0X/funni-square.git
synced 2025-01-06 22:35:40 +00:00
Merge branch 'main' of github.com:Ty3r0X/funni-square
This commit is contained in:
commit
00e6367402
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