diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 25 |
1 files changed, 5 insertions, 20 deletions
@@ -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 |