blob: 725d48d1b43f3acd825e1e1e894f49eee05b245e (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
|
--- Makefile.orig Tue Aug 1 20:36:42 2000
+++ Makefile Wed Aug 28 14:53:02 2002
@@ -1,31 +1,41 @@
-# Muscle Smartcard Development
-# Makefile
-# David Corcoran
+#
+# BSD makefile for ifd-gen (in ifd-devkit)
+#
+
+PREFIX?= /usr/local
+DESTDIR?= ${PREFIX}
+
+#XXX
+#LIBDIR= /pcsc
+LIBDIR= /lib
+INCSDIR= /include
+
+SHLIB_NAME= libgen_ifd.so
+SHLIB_MAJOR= 1
+SHLIB_MINOR= 0
+
+NOMAN= 1
+NOPROFILE= 1
+
+.if !defined(NO_DEBUG)
+CFLAGS+= -g -Wall
+.endif
+
+CFLAGS+= -I.
+CFLAGS+= -I${DESTDIR}${INCSDIR}
+
+LDFLAGS+= -L${DESTDIR}/lib
+LDADD+= -lpcsclite
+
+.if !defined(NO_PCSC_DEBUG)
+CFLAGS+= -DPCSC_DEBUG=1
+.if defined(PCSC_ATR_DEBUG)
+CFLAGS+= -DATR_DEBUG=1
+.endif
+.endif
-CC = cc
-CFLAGS = -g -fpic -w
-LD = ld
-LEX = flex
-OBJ := $(filter-out test.o, $(patsubst %.c,%.o,$(wildcard *.c)))
-INCLUDE = -I.
+SRCS= ifdhandler.c
+INCS= ifdhandler.h pcscdefines.h
-MAKEXE = make
-LIBNAME = libgen_ifd.dylib
-PREFIX = /usr/local/pcsc
-
-DEFS = -DPCSC_DEBUG=1 #-DATR_DEBUG=1
-
-all: unix
-
-clean:
- rm -f *.o $(LIBNAME) core
-
-osx: $(OBJ)
- $(CC) -dynamiclib $(OBJ) -o $(LIBNAME)
-
-unix: $(OBJ)
- $(LD) -shared $(OBJ) -o $(LIBNAME)
-
-$(patsubst %.c,%.o,$(wildcard *.c)) : %.o : %.c
- $(CC) $(CFLAGS) -c $< $(INCLUDE) $(DEFS)
+.include <bsd.lib.mk>
|