File: Makefile

package info (click to toggle)
cryptgps 0.2.1-7
  • links: PTS, VCS
  • area: main
  • in suites: squeeze, wheezy
  • size: 280 kB
  • ctags: 420
  • sloc: ml: 2,627; ansic: 172; sh: 169; makefile: 118
file content (32 lines) | stat: -rw-r--r-- 1,099 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
SSLEAY_INCL = /usr/ssl/include
SSLEAY_LIB = /usr/ssl/lib
CC = gcc -I$(SSLEAY_INCL) -L$(SSLEAY_LIB)

all: speed_blowfish_byte speed_blowfish_native speed_blowfish_c \
     speed_des_byte      speed_des_native      speed_des_c

speed_blowfish_byte: speed_blowfish.ml ../cryptgps.cma
	ocamlc -o speed_blowfish_byte -I .. bigarray.cma ../cryptgps.cma  speed_blowfish.ml

speed_blowfish_native: speed_blowfish.ml ../cryptgps.cmxa
	ocamlopt -o speed_blowfish_native -I .. bigarray.cmxa ../cryptgps.cmxa  speed_blowfish.ml

speed_blowfish_c: speed_blowfish.c
	$(CC) -o speed_blowfish_c speed_blowfish.c -lcrypto

speed_des_byte: speed_des.ml ../cryptgps.cma
	ocamlc -o speed_des_byte -I .. ../cryptgps.cma  speed_des.ml

speed_des_native: speed_des.ml ../cryptgps.cmxa
	ocamlopt -p -o speed_des_native -I .. ../cryptgps.cmxa  speed_des.ml

speed_des_c: speed_des.c
	$(CC) -o speed_des_c speed_des.c -lcrypto

clean:
	rm -f *.cmi *.cmo *.cmx *.o 
	rm -f speed_blowfish_c speed_blowfish_byte speed_blowfish_native
	rm -f speed_des_c speed_des_byte speed_des_native
	rm -f gmon.out
distclean: clean
	rm -f *~