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

Subversion Repositories or1k

[/] [or1k/] [trunk/] [linux/] [uClibc/] [test/] [pthread/] [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
TESTDIR=../
2
include $(TESTDIR)/Rules.mak
3
 
4
LDFLAGS +=
5
#EXTRA_LIBS += -lc -lgcc -lpthread
6
EXTRA_LIBS += -lpthread
7
 
8
TARGETS=ex1 ex2 ex3 ex4 ex5 ex6 ex7
9
all: $(TARGETS)
10
 
11
ex1: ex1.c Makefile $(TESTDIR)/Config $(TESTDIR)/Rules.mak
12
        -@ echo "-------"
13
        -@ echo " "
14
        -@ echo "Compiling vs uClibc: "
15
        -@ echo " "
16
        $(CC) $(CFLAGS) -c $< -o $@.o
17
        $(CC) $(LDFLAGS) $@.o -o $@ $(EXTRA_LIBS)
18
        $(STRIPTOOL) -x -R .note -R .comment $@
19
        -./$@
20
        -@ echo " "
21
 
22
ex2: ex2.c Makefile $(TESTDIR)/Config $(TESTDIR)/Rules.mak
23
        -@ echo "-------"
24
        -@ echo " "
25
        -@ echo "Compiling vs uClibc: "
26
        -@ echo " "
27
        $(CC) $(CFLAGS) -c $< -o $@.o
28
        $(CC) $(LDFLAGS) $@.o -o $@ $(EXTRA_LIBS)
29
        $(STRIPTOOL) -x -R .note -R .comment $@
30
        -./$@
31
        -@ echo " "
32
 
33
ex3: ex3.c Makefile $(TESTDIR)/Config $(TESTDIR)/Rules.mak
34
        -@ echo "-------"
35
        -@ echo " "
36
        -@ echo "Compiling vs uClibc: "
37
        -@ echo " "
38
        $(CC) $(CFLAGS) -c $< -o $@.o
39
        $(CC) $(LDFLAGS) $@.o -o $@ $(EXTRA_LIBS)
40
        $(STRIPTOOL) -x -R .note -R .comment $@
41
        -./$@
42
        -@ echo " "
43
 
44
ex4: ex4.c Makefile $(TESTDIR)/Config $(TESTDIR)/Rules.mak
45
        -@ echo "-------"
46
        -@ echo " "
47
        -@ echo "Compiling vs uClibc: "
48
        -@ echo " "
49
        $(CC) $(CFLAGS) -c $< -o $@.o
50
        $(CC) $(LDFLAGS) $@.o -o $@ $(EXTRA_LIBS)
51
        $(STRIPTOOL) -x -R .note -R .comment $@
52
        -./$@
53
        -@ echo " "
54
 
55
ex5: ex5.c Makefile $(TESTDIR)/Config $(TESTDIR)/Rules.mak
56
        -@ echo "-------"
57
        -@ echo " "
58
        -@ echo "Compiling vs uClibc: "
59
        -@ echo " "
60
        $(CC) $(CFLAGS) -c $< -o $@.o
61
        $(CC) $(LDFLAGS) $@.o -o $@ $(EXTRA_LIBS)
62
        $(STRIPTOOL) -x -R .note -R .comment $@
63
        -./$@
64
        -@ echo " "
65
 
66
ex6: ex6.c Makefile $(TESTDIR)/Config $(TESTDIR)/Rules.mak
67
        -@ echo "-------"
68
        -@ echo " "
69
        -@ echo "Compiling vs uClibc: "
70
        -@ echo " "
71
        $(CC) $(CFLAGS) -c $< -o $@.o
72
        $(CC) $(LDFLAGS) $@.o -o $@ $(EXTRA_LIBS)
73
        $(STRIPTOOL) -x -R .note -R .comment $@
74
        -./$@
75
        -@ echo " "
76
 
77
ex7: ex7.c Makefile $(TESTDIR)/Config $(TESTDIR)/Rules.mak
78
        -@ echo "-------"
79
        -@ echo " "
80
        -@ echo "Compiling vs uClibc: "
81
        -@ echo " "
82
        $(CC) $(CFLAGS) -c $< -o $@.o
83
        $(CC) $(LDFLAGS) $@.o -o $@ $(EXTRA_LIBS)
84
        $(STRIPTOOL) -x -R .note -R .comment $@
85
        -./$@
86
        -@ echo " "
87
 
88
clean:
89
        $(RM) *.[oa] *~ core $(TARGETS)
90
 

powered by: WebSVN 2.1.0

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