Commit 9902db70 authored by Leigh B. Stoller's avatar Leigh B. Stoller
Browse files

Changes for separate source/object tree compilation. This one was a

hack job. Don't bother to build the cracklib or the util directory.
Instead just add the library source dir to vpath and add a dependency
on the object files. This is temporary until I get around to importing
the code in the appropriate flux manner.
parent 4f6517fb
......@@ -5,12 +5,20 @@ SUBDIR = tbsetup/checkpass
include $(OBJDIR)/Makeconf
all: checkpass cracklib
all: checkpass
# XXX This code needs to be "imported" in the accepted manner. This
# is for vpath.
SRCDIR += $(TESTBED_SRCDIR)/$(SUBDIR)/cracklib,2.7/cracklib
OBJECTS = fascist.o packlib.o rules.o stringlib.o
CFLAGS += -I$(TESTBED_SRCDIR)/$(SUBDIR)/cracklib,2.7/cracklib -DIN_CRACKLIB
include $(TESTBED_SRCDIR)/GNUmakerules
checkpass: cracklib
${CC} -g checkpass.c cracklib,2.7/cracklib/libcrack.a -o checkpass -lm
checkpass: checkpass.o $(OBJECTS)
${CC} -g -o checkpass checkpass.o $(OBJECTS) -lm
gmake -C cracklib,2.7 all
......@@ -18,6 +26,6 @@ cracklib:
install: $(INSTALL_LIBEXECDIR)/checkpass
gmake -C cracklib,2.7 clean
# gmake -C cracklib,2.7 clean
/bin/rm -f *.o checkpass
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment