pride/Makefile

29 lines
395 B
Makefile
Raw Permalink Normal View History

2020-10-04 22:38:33 +02:00
NAME = pride
CC = "gcc"
CFLAGS = "-Wall" "-Wextra" "-std=c99" "-O2"
COMPILE = $(CC) "-c" $(CFLAGS)
LINK = $(CC) $(CFLAGS)
.PHONY: all clean
all: $(NAME) clean
$(NAME): pride.o
$(LINK) $(NAME).o -o $(NAME)
%.o: %.c argparse.h
$(COMPILE) -o $@ $*.c
test: $(NAME)
@./$(NAME)
@./$(NAME) test
@./$(NAME) --list
@./$(NAME) --show
@./$(NAME) --help
@./$(NAME) -s 4 test
2020-10-04 22:38:33 +02:00
clean:
rm *.o