File: Makefile

package info (click to toggle)
bcrypt 1.1-6
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 260 kB
  • ctags: 212
  • sloc: ansic: 1,370; makefile: 91; sh: 11
file content (45 lines) | stat: -rw-r--r-- 1,007 bytes parent folder | download | duplicates (5)
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
DEFAULTS = Makefile includes.h blowfish.h functions.h config.h
CC = gcc
CFLAGS = -O2 -Wall 
COMPILE = ${CC} ${CFLAGS}
OBJS = main.o blowfish.o rwfile.o keys.o wrapbf.o endian.o wrapzl.o
LDFLAGS = -L/usr/local/lib -lz 
PREFIX = ${DESTDIR}/usr/

bcrypt:	${OBJS} Makefile
	${COMPILE} -o bcrypt ${OBJS} ${LDFLAGS}

install:	bcrypt Makefile
	mkdir -p ${PREFIX}/bin;\
	mkdir -p ${PREFIX}/share/man/man1;\
	cp bcrypt ${PREFIX}/bin;\
	cp bcrypt.1 ${PREFIX}/share/man/man1;\
	chmod 755 ${PREFIX}/bin/bcrypt;\
	chmod 644 ${PREFIX}/share/man/man1/bcrypt.1

main.o:	main.c ${DEFAULTS}
	${COMPILE} -c main.c

blowfish.o:	blowfish.c ${DEFAULTS}
	${COMPILE} -c blowfish.c

rwfile.o:	rwfile.c ${DEFAULTS}
	${COMPILE} -c rwfile.c

keys.o:	keys.c ${DEFAULTS}
	${COMPILE} -c keys.c

wrapbf.o:	wrapbf.c ${DEFAULTS}
	${COMPILE} -c wrapbf.c

wrapzl.o:	wrapzl.c ${DEFAULTS}
	${COMPILE} -c wrapzl.c

endian.o:	endian.c ${DEFAULTS}
	${COMPILE} -c endian.c

distclean: clean
	
clean:
	rm -rf *.o bcrypt bcrypt.core core bcrypt.tgz