diff options
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..d842b7b --- /dev/null +++ b/Makefile @@ -0,0 +1,25 @@ +CC=gcc +CFLAGS=-Wall -Wextra -Wpedantic -g +LDFLAGS=-lncurses + +TARGET=sf + +SRCS=$(wildcard *.c) +OBJS=$(SRCS:.c=.o) + +.PHONY: all test clean + +all: $(TARGET) + +$(TARGET): $(OBJS) + $(CC) $(OBJS) $(LDFLAGS) -o $@ + +%.o: %.c + $(CC) $(CFLAGS) -c $< -o $@ + + +test: $(TARGET) + DEBUG=true ./\$< + +clean: + rm -f $(OBJS) $(TARGET) |
