CFLAGS += -g -I. -Ilgl/ -Ilib/ -Ilib/x509/ -Ilibextra/ -Ilibextra/opencdk -Iincludes -I.. -DHAVE_CONFIG_H OBJS += lgl/gc-libgcrypt.o lgl/md2.o lgl/gc-pbkdf2-sha1.o lgl/read-file.o #OBJS += lib/ext_srp.o lib/gnutls_srp.o lib/auth_srp.o \ # lib/auth_srp_passwd.o lib/auth_srp_sb64.o lib/auth_srp_rsa.o #OBJS += lib/auth_psk.o lib/auth_psk_passwd.o lib/gnutls_psk.o \ # lib/auth_dhe_psk.o OBJS += lib/gnutls_record.o lib/gnutls_compress.o lib/debug.o \ lib/gnutls_cipher.o lib/gnutls_buffers.o \ lib/gnutls_handshake.o lib/gnutls_num.o lib/gnutls_errors.o \ lib/gnutls_algorithms.o lib/gnutls_dh.o lib/gnutls_kx.o \ lib/gnutls_priority.o lib/gnutls_hash_int.o \ lib/gnutls_cipher_int.o lib/gnutls_compress_int.o \ lib/gnutls_session.o lib/gnutls_db.o lib/x509_b64.o \ lib/auth_anon.o lib/gnutls_extensions.o lib/gnutls_auth.o \ lib/gnutls_v2_compat.o lib/gnutls_datum.o lib/auth_rsa.o \ lib/gnutls_session_pack.o lib/gnutls_mpi.o lib/gnutls_pk.o \ lib/gnutls_cert.o lib/gnutls_global.o lib/gnutls_constate.o \ lib/gnutls_anon_cred.o lib/pkix_asn1_tab.o \ lib/gnutls_asn1_tab.o lib/gnutls_mem.o lib/auth_cert.o \ lib/gnutls_ui.o lib/gnutls_sig.o lib/auth_dhe.o \ lib/gnutls_dh_primes.o lib/ext_max_record.o lib/gnutls_alert.o \ lib/gnutls_str.o lib/gnutls_state.o lib/gnutls_x509.o \ lib/ext_cert_type.o lib/gnutls_rsa_export.o \ lib/auth_rsa_export.o lib/ext_server_name.o \ lib/auth_dh_common.o lib/gnutls_helper.o \ lib/ext_inner_application.o OBJS += lib/x509/crl.o lib/x509/dn.o lib/x509/common.o lib/x509/x509.o \ lib/x509/extensions.o lib/x509/dsa.o \ lib/x509/rfc2818_hostname.o lib/x509/verify.o lib/x509/mpi.o \ lib/x509/privkey.o lib/x509/pkcs7.o lib/x509/crq.o \ lib/x509/xml.o lib/x509/sign.o lib/x509/privkey_pkcs8.o \ lib/x509/pkcs12.o lib/x509/pkcs12_bag.o lib/x509/pkcs12_encr.o \ lib/x509/x509_write.o lib/x509/crl_write.o LIB = lib/libgnutls.a all: includes/gnutls/gnutls.h $(LIB) $(LIB): $(OBJS) $(AR) $(ARFLAGS) $(LIB) $(OBJS) certtool: $(CC) $(CFLAGS) -Igl -Isrc -Isrc/cfg -o $@ gl/readline.c src/certtool.c src/certtool-gaa.c src/prime.c src/certtool-cfg.c src/cfg/cfg+.c src/cfg/cfgfile.c src/cfg/cmdline.c src/cfg/parse.c src/cfg/props.c src/cfg/shared.c src/cfg/platon/str/dynfgets.c src/cfg/platon/str/strctype.c src/cfg/platon/str/strdyn.c src/cfg/platon/str/strplus.c $(LIB) ../libgcrypt.a ../libgpg-error.a ../libtasn1.a includes/gnutls/gnutls.h: includes/gnutls/gnutls.h.in cat $< | sed \ -e 's/@POSSIBLY_WARN_ABOUT_MISSING_FEATURES@//g' \ -e 's/@VERSION@/1.6.3/g' \ -e 's/@MAJOR_VERSION@/1/g' \ -e 's/@MINOR_VERSION@/6/g' \ -e 's/@PATCH_VERSION@/3/g' \ -e 's/@NUMBER_VERSION@/0x010603/g' \ -e 's/@DEFINE_SSIZE_T@/#include /g' \ > $@ romfs: clean: clean-check -rm -v -f $(LIB) `find . -name \*.o` -rm -f includes/gnutls/gnutls.h clean-check: -rm -f simple openssl gc set_pkcs12_cred certder anonself check: simple gc set_pkcs12_cred certder anonself ./gc ./certder ./simple PKCS12FILE=tests/pkcs12-decode/client.p12 PKCS12PASSWORD=foobar ./set_pkcs12_cred ./anonself x509self: tests/x509self.c $(CC) $(CFLAGS) -o $@ tests/utils.c $< $(LIB) ../libgcrypt.a ../libgpg-error.a ../libtasn1.a gc: tests/gc.c $(CC) $(CFLAGS) -o $@ tests/utils.c $< $(LIB) ../libgcrypt.a ../libgpg-error.a ../libtasn1.a certder: tests/certder.c $(CC) $(CFLAGS) -o $@ tests/utils.c $< $(LIB) ../libgcrypt.a ../libgpg-error.a ../libtasn1.a set_pkcs12_cred: tests/set_pkcs12_cred.c $(CC) $(CFLAGS) -o $@ tests/utils.c $< $(LIB) ../libgcrypt.a ../libgpg-error.a ../libtasn1.a simple: tests/simple.c $(CC) $(CFLAGS) -o $@ tests/utils.c $< $(LIB) ../libgcrypt.a ../libgpg-error.a ../libtasn1.a anonself: tests/anonself.c $(CC) $(CFLAGS) -o $@ tests/utils.c $< $(LIB) ../libgcrypt.a ../libgpg-error.a ../libtasn1.a