summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile25
1 files changed, 5 insertions, 20 deletions
diff --git a/Makefile b/Makefile
index c0d8cd0..e476f4e 100644
--- a/Makefile
+++ b/Makefile
@@ -1,23 +1,8 @@
-CC = cc
-CFLAGS = -g -Wall -O2
-LDFLAGS =
-OBJS = main.o
-NAME = zxdump
+all:
+ $(MAKE) -C src all
-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
+install:
+ $(MAKE) -C src install
clean:
- $(RM) -f $(NAME) $(OBJS)
+ $(MAKE) -C src clean