summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorXANTRONIX Development2023-09-11 11:51:12 -0400
committerXANTRONIX Development2023-09-11 11:51:12 -0400
commitac55efa5df45f5c58e970b4becdf13465dd11b28 (patch)
treeb4a22e35f6dde1a4a0cf2e120e6a09b43c15b53f /Makefile
parent82f37123d147e2ae56e5b7654c7dd549a217b6e9 (diff)
downloadzxdump-ac55efa5df45f5c58e970b4becdf13465dd11b28.tar.gz
zxdump-ac55efa5df45f5c58e970b4becdf13465dd11b28.tar.bz2
zxdump-ac55efa5df45f5c58e970b4becdf13465dd11b28.zip
Add Makefile
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile23
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)