From ac55efa5df45f5c58e970b4becdf13465dd11b28 Mon Sep 17 00:00:00 2001 From: XANTRONIX Development Date: Mon, 11 Sep 2023 11:51:12 -0400 Subject: Add Makefile --- Makefile | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..c0d8cd0 --- /dev/null +++ b/Makefile @@ -0,0 +1,23 @@ +CC = cc +CFLAGS = -g -Wall -O2 +LDFLAGS = +OBJS = main.o +NAME = zxdump + +PREFIX = /usr/local +INSTALL = /usr/bin/install +RM = /bin/rm + +all: $(NAME) + +$(NAME): $(OBJS) + $(CC) $(OBJS) -o $(NAME) $(LDFLAGS) + +$(OBJS): %.o: %.c + $(CC) $(CFLAGS) -c $< + +install: $(NAME) + $(INSTALL) -c -m 0755 $(NAME) $(PREFIX)/bin + +clean: + $(RM) -f $(NAME) $(OBJS) -- cgit v1.2.3