# Makefile for pwd_unmkdb
# Simple wins the day here...

# The files
CFILES = pwd_unmkdb.c
OFILES = ${CFILES:.c=.o}

# The flags
WARNS = -Wall -Wredundant-decls \
		-Wmissing-prototypes -Wstrict-prototypes -Wpointer-arith -Winline \
		-Wcast-align -Wcast-qual -Wchar-subscripts \
		-Winline -Wnested-externs -Wmissing-declarations \
		-Werror

CC ?= gcc
CFLAGS += -g -pipe ${WARNS}
LFLAGS += -g -pipe

all: pwd_unmkdb

pwd_unmkdb: ${OFILES}
	${CC} ${LFLAGS} -o pwd_unmkdb ${OFILES}

clean:
	rm -f ${OFILES} pwd_unmkdb *.core

# Transform
.c.o:
	${CC} ${CFLAGS} -I. -c -o ${@} ${<}
