xcwd/Makefile
Adrien Schildknecht 355873d2da cleaning up code
2013-04-26 00:40:51 +02:00

25 lines
325 B
Makefile

CFILES=xcwd.c
CC=gcc
CFLAGS=-Wall -Werror -std=gnu99
LDFLAGS=-lX11
EXE="xcwd"
O=${CFILES:.c=.o}
prefix=/usr/
${EXE}: clean ${O}
${CC} -o $@ ${O} ${CFLAGS} ${LDFLAGS}
.SUFFIXES: .c .o
.c.o:
${CC} -c $< ${CFLAGS}
clean:
rm -vf *.o
distclean: clean
rm -vf ${EXE}
install: ${EXE}
install -m 0755 ${EXE} $(prefix)/bin