100 lines
2.8 KiB
Makefile
100 lines
2.8 KiB
Makefile
|
# =========================================================================
|
||
|
# This makefile was generated by
|
||
|
# Bakefile 0.2.2 (http://bakefile.sourceforge.net)
|
||
|
# Do not modify, all changes will be overwritten!
|
||
|
# =========================================================================
|
||
|
|
||
|
|
||
|
|
||
|
|
||
|
prefix = /usr/local
|
||
|
exec_prefix = ${prefix}
|
||
|
INSTALL = /usr/bin/install -c
|
||
|
SHARED_LD_MODULE_CC = $(CC) -shared -fPIC -o
|
||
|
SO_SUFFIX_MODULE = so
|
||
|
PIC_FLAG = -fPIC -DPIC
|
||
|
STRIP = strip
|
||
|
INSTALL_PROGRAM = ${INSTALL}
|
||
|
INSTALL_DIR = $(INSTALL) -d
|
||
|
BK_DEPS = /home/eric/code/hathor/3rdparty/libbcrypt-1.0/build/unix/bk-deps
|
||
|
DLLPREFIX_MODULE =
|
||
|
LIBS =
|
||
|
CC = gcc
|
||
|
CFLAGS = -g -O2
|
||
|
CPPFLAGS =
|
||
|
LDFLAGS =
|
||
|
|
||
|
### Variables: ###
|
||
|
|
||
|
DESTDIR =
|
||
|
BCRYPT_CFLAGS = -I../../source/include $(PIC_FLAG) $(CPPFLAGS) $(CFLAGS)
|
||
|
BCRYPT_OBJECTS = \
|
||
|
../../bin/bcrypt_bcrypt.o \
|
||
|
../../bin/bcrypt_blowfish.o \
|
||
|
../../bin/bcrypt_endian.o \
|
||
|
../../bin/bcrypt_keys.o \
|
||
|
../../bin/bcrypt_rwfile.o \
|
||
|
../../bin/bcrypt_wrapbf.o \
|
||
|
../../bin/bcrypt_wrapzl.o
|
||
|
|
||
|
### Conditionally set variables: ###
|
||
|
|
||
|
CCC = $(BK_DEPS) $(CC)
|
||
|
#CCC = $(CC)
|
||
|
|
||
|
### Targets: ###
|
||
|
|
||
|
all: ../../bin/$(DLLPREFIX_MODULE)bcrypt.$(SO_SUFFIX_MODULE)
|
||
|
|
||
|
install: all install_bcrypt
|
||
|
|
||
|
uninstall: uninstall_bcrypt
|
||
|
|
||
|
install-strip: install
|
||
|
$(STRIP) $(DESTDIR)/usr/local/lib/$(DLLPREFIX_MODULE)bcrypt.$(SO_SUFFIX_MODULE)
|
||
|
|
||
|
clean:
|
||
|
rm -rf ../../bin/.deps ../../bin/.pch
|
||
|
rm -f ../../bin/*.o
|
||
|
rm -f ../../bin/$(DLLPREFIX_MODULE)bcrypt.$(SO_SUFFIX_MODULE)
|
||
|
|
||
|
distclean: clean
|
||
|
rm -f config.cache config.log config.status bk-deps bk-make-pch shared-ld-sh Makefile
|
||
|
|
||
|
../../bin/$(DLLPREFIX_MODULE)bcrypt.$(SO_SUFFIX_MODULE): $(BCRYPT_OBJECTS)
|
||
|
$(SHARED_LD_MODULE_CC) $@ $(BCRYPT_OBJECTS) $(LDFLAGS) $(LIBS)
|
||
|
|
||
|
install_bcrypt:
|
||
|
$(INSTALL_DIR) $(DESTDIR)/usr/local/lib
|
||
|
$(INSTALL_PROGRAM) ../../bin/$(DLLPREFIX_MODULE)bcrypt.$(SO_SUFFIX_MODULE) $(DESTDIR)/usr/local/lib
|
||
|
|
||
|
uninstall_bcrypt:
|
||
|
rm -f $(DESTDIR)/usr/local/lib/$(DLLPREFIX_MODULE)bcrypt.$(SO_SUFFIX_MODULE)
|
||
|
|
||
|
../../bin/bcrypt_bcrypt.o: ../../source/src/bcrypt.c
|
||
|
$(CCC) -c -o $@ $(BCRYPT_CFLAGS) ../../source/src/bcrypt.c
|
||
|
|
||
|
../../bin/bcrypt_blowfish.o: ../../source/src/blowfish.c
|
||
|
$(CCC) -c -o $@ $(BCRYPT_CFLAGS) ../../source/src/blowfish.c
|
||
|
|
||
|
../../bin/bcrypt_endian.o: ../../source/src/endian.c
|
||
|
$(CCC) -c -o $@ $(BCRYPT_CFLAGS) ../../source/src/endian.c
|
||
|
|
||
|
../../bin/bcrypt_keys.o: ../../source/src/keys.c
|
||
|
$(CCC) -c -o $@ $(BCRYPT_CFLAGS) ../../source/src/keys.c
|
||
|
|
||
|
../../bin/bcrypt_rwfile.o: ../../source/src/rwfile.c
|
||
|
$(CCC) -c -o $@ $(BCRYPT_CFLAGS) ../../source/src/rwfile.c
|
||
|
|
||
|
../../bin/bcrypt_wrapbf.o: ../../source/src/wrapbf.c
|
||
|
$(CCC) -c -o $@ $(BCRYPT_CFLAGS) ../../source/src/wrapbf.c
|
||
|
|
||
|
../../bin/bcrypt_wrapzl.o: ../../source/src/wrapzl.c
|
||
|
$(CCC) -c -o $@ $(BCRYPT_CFLAGS) ../../source/src/wrapzl.c
|
||
|
|
||
|
|
||
|
# Include dependency info, if present:
|
||
|
-include .deps/*.d
|
||
|
|
||
|
.PHONY: all install uninstall clean distclean install_bcrypt uninstall_bcrypt
|