Hi, In the thread http://forum.doom9.org/showthread.php?p=970105 have the attached source code been released, which extracts very close to all keys from BluRay and HD-DVD discs.
It compiles on Linux with gcc -o aacskeys -lcrypto ioctl.c ecdsa.c mmc.c aes.c aacskeys.c So I would like to write a Makefile that takes care of the openssl dependency, but I can't figure out what I am doing wrong... Can anyone see what I am doing wrong? # Top-level Makefile for aacskeys CC = gcc SSLFLAGS=$(pkg-config --cflags openssl) SSLLIBS=$(pkg-config --libs openssl) #SSLFLAGS = $$(pkg-config --cflags) #SSLLIBS = $$(pkg-config --libs) #SSLLIBS="`pkg-config --libs openssl`" #SSLFLAGS="`pkg-config --cflags openssl`" CFLAGS=-Wall -O2 .SUFFIXES: .o .c .h OBJS = aacskeys.o aes.o ecdsa.o ioctl.o mmc.o .c.o: $(CC) $(CFLAGS) $(SSLFLAGS) -c $< aacskeys: $(OBJS) $(CC) $(SSLLIBS) -o $@ $(OBJS) all: clean aacskeys This is what I get ~/bdownload/aacskeys2$ make gcc -Wall -O2 -c aacskeys.c In file included from aacskeys.c:4: aacskeys.h:18:24: error: openssl/ec.h: No such file or directory aacskeys.h:19:27: error: openssl/ecdsa.h: No such file or directory In file included from aacskeys.c:4: aacskeys.h:22: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token aacskeys.h:23: error: expected '=', ',', ';', 'asm' or '__attribute__' before '*' token aacskeys.h:24: error: expected ')' before '*' token aacskeys.c:80: warning: return type defaults to 'int' aacskeys.c:123: warning: return type defaults to 'int' aacskeys.c:172: warning: return type defaults to 'int' aacskeys.c:186: warning: return type defaults to 'int' aacskeys.c:277: warning: return type defaults to 'int' aacskeys.c:303: warning: return type defaults to 'int' aacskeys.c:327: warning: return type defaults to 'int' aacskeys.c: In function 'main': aacskeys.c:563: warning: pointer targets in passing argument 1 of 'output_key' differ in signedness aacskeys.c:593: warning: pointer targets in passing argument 2 of 'aacs_sign' differ in signedness aacskeys.c:710: warning: label 'err' defined but not used make: *** [aacskeys.o] Error 1 ~/bdownload/aacskeys2$ ______________________________________________________________________ OpenSSL Project http://www.openssl.org User Support Mailing List openssl-users@openssl.org Automated List Manager [EMAIL PROTECTED]