Still broken, slightly less. Will import code from iode.
[iomenu.git] / Makefile
blobdda0bcfec5ec17020d59a1fca1dc01e8a5a13bc9
1 CFLAGS = -std=c89 -pedantic -Wall -Wextra -g -static
2 SRC = main.c buffer.c util.c draw.c input.c
3 OBJ = ${SRC:.c=.o}
5 MANPREFIX = $(PREFIX)
7 all: clean iomenu
9 .c.o:
10 ${CC} -c ${CFLAGS} $<
12 iomenu: ${OBJ}
13 ${CC} -o $@ ${OBJ} ${LDFLAGS}
14 rm -f *.o
16 clean:
17 rm -f iomenu ${OBJ}
19 install: iomenu
20 mkdir -p $(PREFIX)/bin $(MANPREFIX)/man/man1
21 cp *.1 $(MANPREFIX)/man/man1/
22 cp iomenu io-* $(PREFIX)/bin/