# Makefile for login.ttp

SHELL = /bin/sh

#CPPFLAGS = -I../include -DMINT -DLOGIN -DBZERO -DSHELL=\"$(SHELL)\" -DOWN_TIMEOUT
CPPFLAGS = -I../include -DMINT -DLOGIN -DBZERO -DSHELL=\"$(SHELL)\" -DOWN_TIMEOUT
CFLAGS = -g

# Uncomment the next line if you only have mntlib10 or below, or am
# compiling this for an OS other than MiNT.
# Also uncomment it for later mntlibs cos Dave Gymer's rewritten versions in
# the library are seriously broken.
EXTRALIBS = ../lib/libusers.a ../syslog/libsyslog.a

all: login.ttp passwd.ttp su.ttp

login.ttp: login.o fcrypt.o ../init/getttyent.o $(EXTRALIBS)
	$(CC) -o $@ $(CFLAGS) login.o fcrypt.o ../init/getttyent.o $(EXTRALIBS)

su.ttp: su.o fcrypt.o ../init/getttyent.o $(EXTRALIBS)
	$(CC) -o $@ $(CFLAGS) su.o fcrypt.o ../init/getttyent.o $(EXTRALIBS)

passwd.ttp: passwd.o fcrypt.o
	$(CC) -o $@ $(CFLAGS) passwd.o fcrypt.o

clean:
	-/bin/rm login.ttp su.ttp passwd.ttp *.o
