OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [linux/] [uClibc/] [test/] [crypt/] [Makefile] - Blame information for rev 1765

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1325 phoenix
# Makefile for uClibc
2
#
3
# Copyright (C) 2002 Erik Andersen 
4
#
5
# This program is free software; you can redistribute it and/or modify it under
6
# the terms of the GNU Library General Public License as published by the Free
7
# Software Foundation; either version 2 of the License, or (at your option) any
8
# later version.
9
#
10
# This program is distributed in the hope that it will be useful, but WITHOUT
11
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
12
# FOR A PARTICULAR PURPOSE. See the GNU Library General Public License for more
13
# details.
14
#
15
# You should have received a copy of the GNU Library General Public License
16
# along with this program; if not, write to the Free Software Foundation, Inc.,
17
# 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
18
 
19
 
20
 
21
TESTDIR=../
22
include $(TESTDIR)/Rules.mak
23
 
24
TARGETS=crypt md5c-test
25
EXTRA_LIBS=-lcrypt
26
 
27
all: $(TARGETS)
28
 
29
crypt: crypt.c Makefile $(TESTDIR)/Config $(TESTDIR)/Rules.mak
30
        -@ echo "-------"
31
        -@ echo " "
32
        -@ echo "Compiling vs uClibc: "
33
        -@ echo " "
34
        $(CC) $(CFLAGS) -c $< -o $@.o
35
        $(CC) $(LDFLAGS) $@.o -o $@ $(EXTRA_LIBS)
36
        $(STRIPTOOL) -x -R .note -R .comment $@
37
        -./$@ < crypt.input #> $@.out 2>&1
38
        -@ echo " "
39
 
40
crypt_glibc: crypt.c Makefile $(TESTDIR)/Config $(TESTDIR)/Rules.mak
41
        -@ echo "-------"
42
        -@ echo " "
43
        -@ echo "Compiling vs glibc: "
44
        -@ echo " "
45
        $(HOSTCC) $(GLIBC_CFLAGS) -c $< -o $@.o
46
        $(HOSTCC) $(GLIBC_LDFLAGS) $@.o -o $@ $(EXTRA_LIBS)
47
        $(STRIPTOOL) -x -R .note -R .comment $@
48
        -./$@ < crypt.input > $@.out 2>&1
49
        -@ echo " "
50
 
51
diff: crypt_glibc crypt
52
        -@ echo "-------"
53
        -@ echo " "
54
        -@ echo "Diffing output: "
55
        -@ echo " "
56
        -diff -u crypt_glibc.out crypt.out
57
        -@ echo " "
58
 
59
md5c-test: md5c-test.c Makefile $(TESTDIR)/Config $(TESTDIR)/Rules.mak
60
        -@ echo "-------"
61
        -@ echo " "
62
        -@ echo "Compiling vs uClibc: "
63
        -@ echo " "
64
        $(CC) $(CFLAGS) -c $< -o $@.o
65
        $(CC) $(LDFLAGS) $@.o -o $@ $(EXTRA_LIBS)
66
        $(STRIPTOOL) -x -R .note -R .comment $@
67
        -./$@
68
        -@ echo " "
69
 
70
clean:
71
        $(RM) *.[oa] *~ core crypt_glibc crypt crypt_glibc.out crypt.out md5c-test
72
 
73
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.