diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/Makefile b/Makefile deleted file mode 100644 index 2385529..0000000 --- a/Makefile +++ /dev/null @@ -1,39 +0,0 @@ -CC = clang -CFLAGS = -std=c17 -Wall -Wextra -Wpedantic -I include -march=native -mtune=native -O3 -ifneq ($(debug),1) -CFLAGS += -DNDEBUG -else -CFLAGS += -g -endif -LDFLAGS = -SRCS = \ - src/luma/print.c \ - src/luma/utf8dec.c \ - src/luma/utf8enc.c \ - src/main.c -HDRS = \ - include/luma/arch.h \ - include/luma/print.h \ - include/luma/utf8dec.h \ - include/luma/utf8enc.h -OBJS = $(SRCS:.c=.o) -BIN = luma -$(BIN): $(OBJS) - $(CC) $(LDFLAGS) $^ -o $@ -$(OBJS): $(HDRS) -.PHONY: run -run: luma - ./luma -.PHONY: clean -clean: - rm $(OBJS) -.PHONY: purge -purge: - rm $(BIN) $(OBJS) -.PHONY: install -install: $(BIN) - mkdir --parents $(DESTDIR)/bin - install --mode=555 $(BIN) $(DESTDIR)/bin -.PHONY: uninstall -uninstall: - rm --force --recursive $(DESTDIR)/bin/$(BIN) |