# Makefile for chuser

# make			Compile C wrappers.
# make install		Install wrappers and perl scripts, set permissions.

all: wrapper

wrapper: chuser.c chuser_form.c
	cc -o chuser chuser.c
	cc -o chuser_form chuser_form.c

clean:
	rm chuser
	rm chuser_form

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