mirror of
https://github.com/intel/linux-sgx
synced 2026-06-08 14:49:32 +00:00
9441de4c38
This release is used in conjunction with the linux-sgx-driver Intial release: https://github.com/01org/linux-sgx-driver commit-id: 0e865ce5e6b297a787bcdc12d98bada8174be6d7 Intel-id: 33399 Signed-off-by: Angie Chinchilla <angie.v.chinchilla@intel.com>
30 lines
428 B
Makefile
30 lines
428 B
Makefile
PACKAGE_NAME=@PACKAGE_NAME@
|
|
PACKAGE_VERSION=@PACKAGE_VERSION@
|
|
CC=@CC@
|
|
CFLAGS=@CFLAGS@ -O2
|
|
AR=ar
|
|
|
|
TEST_OBJ=main.o
|
|
|
|
%.o: %.c
|
|
$(CC) $(CFLAGS) -c $<
|
|
|
|
all: bin lib
|
|
|
|
bin: test
|
|
|
|
lib: librdrand.a
|
|
|
|
librdrand.a: rdrand.o
|
|
$(AR) rcs $@ $?
|
|
|
|
test: $(TEST_OBJ) librdrand.a
|
|
$(CC) $(CFLAGS) -o $@ $(TEST_OBJ) -L. -lrdrand
|
|
|
|
clean:
|
|
rm -f *.o librdrand.a test
|
|
|
|
distclean: clean
|
|
rm -f Makefile config.guess config.status config.log config.h
|
|
|