-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
executable file
·51 lines (35 loc) · 961 Bytes
/
Makefile
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
#
# Linux:
# -D__LITTLE_ENDIAN__
# Solaris:
# -D__BIG_ENDIAN__
#
CFLAGS = -fpic
LIB = libspnegohelp.a
SLIB = libspnegohelp.so
OBJS = derparse.o spnego.o spnegohelp.o spnegoparse.o
all:
make `uname`
debug:
make CFLAGS="$(CFLAGS) -DDEBUG" `uname`
SunOS:
make CFLAGS="$(CFLAGS) -D__BIG_ENDIAN__" libs
AIX:
make CFLAGS="$(CFLAGS) -D__BIG_ENDIAN__" libs
Linux:
make CFLAGS="$(CFLAGS) -D__LITTLE_ENDIAN__" libs
libs: $(LIB) $(SLIB)
$(LIB): $(OBJS)
ar -r $(LIB) $(OBJS)
$(SLIB): $(OBJS)
gcc --shared -o $(SLIB) $(OBJS)
derparse.o: derparse.c derparse.h spnego.h Makefile
gcc -c $(CFLAGS) derparse.c -o $@
spnego.o: spnego.c derparse.h spnego.h spnegoparse.h Makefile
gcc -c $(CFLAGS) spnego.c -o $@
spnegoparse.o: spnegoparse.c derparse.h spnego.h spnegoparse.h Makefile
gcc -c $(CFLAGS) spnegoparse.c -o $@
spnegohelp.o: spnegohelp.c spnego.h spnegohelp.h Makefile
gcc -c $(CFLAGS) spnegohelp.c -o $@
clean:
rm $(OBJS) $(LIB) $(SLIB)