cowterm/Makefile

36 lines
598 B
Makefile
Raw Permalink Normal View History

2025-01-15 23:36:48 +00:00
# cowterm - simple terminal emulator
include config.mk
SRC = cowterm.c
OBJ = ${SRC:.c=.o}
all: options cowterm
options:
@echo cowterm build options:
@echo "CFLAGS = ${CFLAGS}"
@echo "LDFLAGS = ${LDFLAGS}"
@echo "CC = ${CC}"
.c.o:
${CC} -c ${CFLAGS} $<
${OBJ}: config.mk
cowterm: ${OBJ}
${CC} -o $@ ${OBJ} ${LDFLAGS}
@rm ${OBJ}
clean:
rm -f cowterm
install: all
mkdir -p ${DESTDIR}${PREFIX}/bin
cp -f cowterm ${DESTDIR}${PREFIX}/bin
chmod 755 ${DESTDIR}${PREFIX}/bin/cowterm
uninstall:
rm -f ${DESTDIR}${PREFIX}/bin/cowterm
.PHONY: all options clean install uninstall