summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorXANTRONIX Development2023-09-13 14:40:48 -0400
committerXANTRONIX Development2023-09-13 14:40:48 -0400
commitb89c79b5a8b2084574f2645d7034ba595b9d5cd0 (patch)
tree3d792b341ccf98567725e8b12d6e81801b95351e /Makefile
parent4451e2f2ef709ad4ad0e519a0310cc1e31c0d25a (diff)
downloadzxdump-b89c79b5a8b2084574f2645d7034ba595b9d5cd0.tar.gz
zxdump-b89c79b5a8b2084574f2645d7034ba595b9d5cd0.tar.bz2
zxdump-b89c79b5a8b2084574f2645d7034ba595b9d5cd0.zip
Refactor stuff into separate files, finally
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