Master repository for organizational purposes
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
.SUFFIXES:
|
|
include config.mk
|
|
|
|
OBJ := $(SRC:.c=.o)
|
|
|
|
all: $(OBJ) $(OUT)
|
|
%.o: %.c
|
|
$(CC) -o $@ -c $(CFLAGS) $<
|
|
clean:
|
|
rm -f $(OBJ) $(OUT)
|
|
|
|
ifneq ($(OUT),)
|
|
$(OUT): $(OBJ)
|
|
$(CC) -o "$@" $(LDFLAGS) $^
|
|
endif
|
|
|
|
.PHONY: all clean
|
|
|