update to v1.31

This commit is contained in:
belliash
2013-07-26 17:40:19 +02:00
parent ea16a23563
commit 27b78ae986
3 changed files with 49 additions and 59 deletions

View File

@@ -4,6 +4,12 @@ LDLIBS = -lcrypt
PREFIX =
BINDIR = $(PREFIX)/usr/sbin
ifeq ($(USE_SHADOW), 1)
DEFS:=-DUSE_SHADOW
else
DEFS:=
endif
all: sessmgr
@echo "All done!"
@@ -11,10 +17,10 @@ sessmgr: sessmgr.o sha256.o
$(CC) $(CFLAGS) $(LDLIBS) sessmgr.o sha256.o -o sessmgr
sessmgr.o: sessmgr.c
$(CC) $(CFLAGS) -c sessmgr.c
$(CC) $(CFLAGS) $(DEFS) -c sessmgr.c
sha256.o: sha256.c
$(CC) $(CFLAGS) -c sha256.c
$(CC) $(CFLAGS) $(DEFS) -c sha256.c
install:
mkdir -p $(BINDIR)