# Makefile for chpasswd.cgi

# make			Compile the C wrapper.
# make install		Install the wrapper and the perl script with apporpriate permissions.

all: wrapper

wrapper: chpasswd.cgi.c
	cc -o chpasswd.cgi chpasswd.cgi.c

clean:
	rm chpasswd.cgi

install: wrapper
	install -o root -g root -m 6755 -s chpasswd.cgi /usr/lib/cgi-bin
	install -o root -g root -m 0755    chpasswd.pl  /usr/lib/cgi-bin
