38 lines
545 B
Makefile
38 lines
545 B
Makefile
NAME = codexion
|
|
|
|
SRCS = $(wildcard coders/*.c)
|
|
INCLUDES = coders/codexion.h
|
|
|
|
OBJS = $(SRCS:.c=.o)
|
|
|
|
CC = cc
|
|
CFLAGS = -Wall -Wextra -Werror -pthread
|
|
|
|
all: $(NAME)
|
|
|
|
$(NAME): $(OBJS)
|
|
$(CC) $(CFLAGS) -o $@ $^
|
|
|
|
%.o: %.c
|
|
$(CC) $(CFLAGS) -c -o $@ $<
|
|
|
|
# number_of_coders
|
|
# time_to_burnout
|
|
# time_to_compile
|
|
# time_to_debug
|
|
# time_to_refactor
|
|
# number_of_compiles_required
|
|
# dongle_cooldown
|
|
# scheduler
|
|
test: $(NAME)
|
|
./$(NAME) 10 2000 500 200 300 5 50 1
|
|
|
|
clean:
|
|
rm -f $(OBJS)
|
|
|
|
fclean: clean
|
|
rm -f $(NAME)
|
|
|
|
re: fclean all
|
|
|
|
.PHONY: all clean fclean re
|