meow.git
Makefile
# meow - 6502 assembler
# Copyright (C) 2024-2025 ArcNyxx
# see LICENCE file for licensing information
.POSIX:
include config.mk
SRC = direct.c instruct.c label.c meow.c tables.c
HED = direct.h instruct.h label.h meow.h tables.h
OBJ = $(SRC:.c=.o)
all: meow
$(OBJ): config.mk $(HED)
.c.o:
$(CC) $(CFLAGS) -c $<
meow: $(OBJ)
$(CC) $(OBJ) -o $@ $(LDFLAGS)
clean:
rm -f meow $(OBJ)
install: all
mkdir -p $(PREFIX)/bin $(MANPREFIX)/man1
cp -f meow $(PREFIX)/bin
chmod 755 $(PREFIX)/bin/meow
sed 's/VERSION/$(VERSION)/g' < meow.1 > $(MANPREFIX)/man1/meow.1
chmod 644 $(MANPREFIX)/man1/meow.1
uninstall:
rm -f $(PREFIX)/bin/meow $(MANPREFIX)/man1/meow.1
.PHONY: all clean install uninstall