TclPKCS11

Diff
Login

Diff

Differences From Artifact [454cbc79b9]:

To Artifact [31d0c8ba93]:


1

2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17



18
19
CC = gcc

CFLAGS = -fPIC -DPIC -Wall
CPPFLAGS = -DTCL_USE_STUBS=1 -DHAVE_DLOPEN=1 -DHAVE_DLFCN_H=1
SHFLAGS = -nostartfiles -rdynamic -shared
LIBS = -ldl -ltclstub8.5 

all: tclpkcs11.so

pkcs11.h: pkcs11f.h pkcs11t.h
tclpkcs11.o: tclpkcs11.c pkcs11.h
tclpkcs11.so: tclpkcs11.o
	$(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) $(SHFLAGS) -o tclpkcs11.so tclpkcs11.o $(LIBS)

clean:
	rm -f tclpkcs11.so tclpkcs11.o

distclean: clean




.PHONY: all clean distclean
|
>
|
|
|
|

|



|
|


|


>
>
>


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
CC = @CC@
SHLIB_LD = @SHLIB_LD@
CFLAGS = @CFLAGS@ @SHLIB_CFLAGS@ @CFLAGS_OPTIMIZE@
CPPFLAGS = @CPPFLAGS@ @DEFS@ -DTCL_USE_STUBS=1
LDFLAGS = @CC_SEARCH_FLAGS@ @SHLIB_LD_LIBS@ @TCL_STUB_LIB_SPEC@
LIBS = @LIBS@ @TCL_STUB_LIB_FLAG@

all: tclpkcs11@SHLIB_SUFFIX@

pkcs11.h: pkcs11f.h pkcs11t.h
tclpkcs11.o: tclpkcs11.c pkcs11.h
tclpkcs11@SHLIB_SUFFIX@: tclpkcs11.o
	$(SHLIB_LD) $(LDFLAGS) -o tclpkcs11@SHLIB_SUFFIX@ tclpkcs11.o $(LIBS)

clean:
	rm -f tclpkcs11@SHLIB_SUFFIX@ tclpkcs11.o

distclean: clean
	rm -rf autom4te.cache
	rm -f config.log config.status
	rm -f Makefile

.PHONY: all clean distclean