### Path settings srcdir = . top_srcdir = .. prefix = /usr exec_prefix = ${prefix} bindir = ${exec_prefix}/bin sysconfdir = /etc/conserver ### Installation programs and flags INSTALL = /usr/bin/install -c INSTALL_PROGRAM = ${INSTALL} -s LN_S = ln -s MKDIR = mkdir -p -m 755 ### Compiler and link options CC = gcc CFLAGS = -O # -DPUCC -DSUN5 DEFS = -DHAVE_CONFIG_H -DSYSCONFDIR=\"$(sysconfdir)\" CPPFLAGS = -I.. -I$(top_srcdir) -I$(srcdir) $(DEFS) LDFLAGS = LIBS = -lcrypt ### Makefile rules - no user-servicable parts below AUTOLOGIN_OBJS = main.o autologin.o AUTOLOGIN_HDRS = ../config.h $(top_srcdir)/compat.h $(srcdir)/main.h ALL = autologin all: $(ALL) autologin: $(AUTOLOGIN_OBJS) $(CC) $(CFLAGS) $(LDFLAGS) -o autologin $(AUTOLOGIN_OBJS) $(LIBS) .c.o: $(CC) $(CFLAGS) $(CPPFLAGS) -c -o $@ $< clean: rm -f *~ *.o $(ALL) core distclean: clean rm -f Makefile install: $(MKDIR) $(DESTDIR)$(bindir) $(INSTALL_PROGRAM) autologin $(DESTDIR)$(bindir) .PHONY: clean distclean install