summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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)