From b89c79b5a8b2084574f2645d7034ba595b9d5cd0 Mon Sep 17 00:00:00 2001 From: XANTRONIX Development Date: Wed, 13 Sep 2023 14:40:48 -0400 Subject: Refactor stuff into separate files, finally --- Makefile | 25 +++++-------------------- 1 file changed, 5 insertions(+), 20 deletions(-) (limited to 'Makefile') 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 -- cgit v1.2.3