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)