summaryrefslogtreecommitdiffstats
path: root/3rdparty/phpass/c/Makefile
blob: fe48917f7f5d482186166dc19bc9b5ca69ab9193 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#
# Written by Solar Designer and placed in the public domain.
# See crypt_private.c for more information.
#
CC = gcc
LD = $(CC)
RM = rm -f
CFLAGS = -Wall -O2 -fomit-frame-pointer -funroll-loops
LDFLAGS = -s
LIBS = -lcrypto

all: crypt_private-test

crypt_private-test: crypt_private-test.o
	$(LD) $(LDFLAGS) $(LIBS) crypt_private-test.o -o $@

crypt_private-test.o: crypt_private.c
	$(CC) -c $(CFLAGS) crypt_private.c -DTEST -o $@

clean:
	$(RM) crypt_private-test*