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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [linux/] [uClibc/] [test/] [signal/] [Makefile] - Blame information for rev 1325

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1325 phoenix
# Makefile for uClibc
2
#
3
# Copyright (C) 2000,2001 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
TESTDIR=../
20
include $(TESTDIR)/Rules.mak
21
 
22
CFLAGS += -D_GNU_SOURCE
23
 
24
TARGETS=signal signal_glibc sigchld sigchld_glibc
25
all: $(TARGETS)
26
 
27
signal: signal.c Makefile $(TESTDIR)/Config $(TESTDIR)/Rules.mak
28
        -@ echo "-------"
29
        -@ echo " "
30
        -@ echo "Compiling vs uClibc: "
31
        -@ echo " "
32
        $(CC) $(CFLAGS) -c $< -o $@.o
33
        $(CC) $(LDFLAGS) $@.o -o $@ $(EXTRA_LIBS)
34
        $(STRIPTOOL) -x -R .note -R .comment $@
35
        -./$@
36
        -@ echo " "
37
 
38
signal_glibc: signal.c Makefile
39
        -@ echo "-------"
40
        -@ echo " "
41
        -@ echo "Compiling vs GNU libc: "
42
        -@ echo " "
43
        $(HOSTCC) $(GLIBC_CFLAGS) -c $< -o $@.o
44
        $(HOSTCC) $(GLIBC_LDFLAGS) $@.o -o $@
45
        $(STRIPTOOL) -x -R .note -R .comment $@
46
        -./$@
47
        -@ echo " "
48
 
49
sigchld: sigchld.c Makefile $(TESTDIR)/Config $(TESTDIR)/Rules.mak
50
        -@ echo "-------"
51
        -@ echo " "
52
        -@ echo "Compiling vs uClibc: "
53
        -@ echo " "
54
        $(CC) $(CFLAGS) -c $< -o $@.o
55
        $(CC) $(LDFLAGS) $@.o -o $@ $(EXTRA_LIBS)
56
        $(STRIPTOOL) -x -R .note -R .comment $@
57
        -./$@
58
        -@ echo " "
59
 
60
sigchld_glibc: sigchld.c Makefile
61
        -@ echo "-------"
62
        -@ echo " "
63
        -@ echo "Compiling vs GNU libc: "
64
        -@ echo " "
65
        $(HOSTCC) $(GLIBC_CFLAGS) -c $< -o $@.o
66
        $(HOSTCC) $(GLIBC_LDFLAGS) $@.o -o $@
67
        $(STRIPTOOL) -x -R .note -R .comment $@
68
        -./$@
69
        -@ echo " "
70
 
71
clean:
72
        $(RM) *.[oa] *~ core $(TARGETS)
73
 
74
 

powered by: WebSVN 2.1.0

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