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.
23 lines
432 B
23 lines
432 B
CFLAGS = -std=c11 -Wall -Wextra -pedantic -Wno-unused-parameter -Wno-empty-translation-unit
|
|
SRCS =
|
|
OBJS =
|
|
BIN = nonsenselock
|
|
ROOT = $(dir $(abspath $(firstword $(MAKEFILE_LIST))))
|
|
|
|
.PHONY: all
|
|
all: $(BIN)
|
|
|
|
.PHONY: clean
|
|
clean:
|
|
rm -f $(OBJS) $(BIN)
|
|
|
|
|
|
include $(ROOT)/src/build.mk
|
|
|
|
OBJS += $(addprefix obj/,$(SRCS:.c=.o))
|
|
|
|
$(BIN): $(OBJS) $(EXT_OBJS)
|
|
|
|
obj/%.o: src/%.c
|
|
@mkdir -p $(dir $@)
|
|
$(CC) $(CPPFLAGS) $(CFLAGS) -c $^ -o $@
|
|
|