diff options
author | XANTRONIX Development | 2023-09-11 11:51:12 -0400 |
---|---|---|
committer | XANTRONIX Development | 2023-09-11 11:51:12 -0400 |
commit | ac55efa5df45f5c58e970b4becdf13465dd11b28 (patch) | |
tree | b4a22e35f6dde1a4a0cf2e120e6a09b43c15b53f | |
parent | 82f37123d147e2ae56e5b7654c7dd549a217b6e9 (diff) | |
download | zxdump-ac55efa5df45f5c58e970b4becdf13465dd11b28.tar.gz zxdump-ac55efa5df45f5c58e970b4becdf13465dd11b28.tar.bz2 zxdump-ac55efa5df45f5c58e970b4becdf13465dd11b28.zip |
Add Makefile
-rw-r--r-- | Makefile | 23 |
1 files changed, 23 insertions, 0 deletions
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) |