~ubuntu-branches/debian/squeeze/ffcall/squeeze

« back to all changes in this revision

Viewing changes to ffcall/avcall/Makefile.mingw32

  • Committer: Bazaar Package Importer
  • Author(s): Christoph Egger
  • Date: 2010-06-26 15:29:30 UTC
  • mfrom: (5.1.1 experimental)
  • Revision ID: james.westby@ubuntu.com-20100626152930-c09y01gk3szcnykn
Tags: 1.10+cvs20100619-2
Ship to unstable

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
# -*-Makefile-*- for avcall
2
 
 
3
 
#### Start of system configuration section. ####
4
 
 
5
 
HOST = i386-pc-win32-gcc
6
 
CPU = i386
7
 
 
8
 
# Directories used by "make":
9
 
srcdir = .
10
 
 
11
 
# Directories used by "make install":
12
 
prefix = /usr/local
13
 
local_prefix = /usr/local
14
 
exec_prefix = $(prefix)
15
 
libdir = $(exec_prefix)/lib
16
 
includedir = $(prefix)/include
17
 
mandir = $(prefix)/man
18
 
 
19
 
# Programs used by "make":
20
 
CC = gcc -mno-cygwin
21
 
CFLAGS = -O
22
 
CPP = gcc -E
23
 
INCLUDES = -I. -I$(srcdir)
24
 
ASPFLAGS = -DASM_UNDERSCORE
25
 
AR = ar
26
 
AR_FLAGS = rc
27
 
MV = mv
28
 
LN = cp
29
 
RM = rm -f
30
 
 
31
 
# Programs used by "make install":
32
 
INSTALL = @INSTALL@
33
 
INSTALL_PROGRAM = @INSTALL_PROGRAM@
34
 
INSTALL_DATA = @INSTALL_DATA@
35
 
 
36
 
#### End of system configuration section. ####
37
 
 
38
 
SHELL = /bin/sh
39
 
 
40
 
OBJECTS = avcall.o structcpy.o
41
 
 
42
 
all : $(OBJECTS) libavcall.a avcall.h $(srcdir)/avcall.3 $(srcdir)/avcall.html
43
 
 
44
 
avcall.h : avcall.h.mingw32
45
 
        $(RM) avcall.h
46
 
        $(LN) avcall.h.mingw32 avcall.h
47
 
 
48
 
avcall.o : avcall-$(CPU).o
49
 
        $(RM) avcall.o
50
 
        $(LN) avcall-$(CPU).o avcall.o
51
 
 
52
 
avcall-i386.o : avcall-i386.asm
53
 
        $(CC) -c -x assembler avcall-i386.asm
54
 
 
55
 
avcall-i386.asm : $(srcdir)/avcall-i386-macro.S
56
 
        $(CPP) $(ASPFLAGS) $(srcdir)/avcall-i386-macro.S | grep -v '^ *#line' | grep -v '^#ident' | grep -v '^#' | sed -e 's,% ,%,g' -e 's,\. ,.,g' > avcall-i386.asm
57
 
 
58
 
structcpy.o : $(srcdir)/structcpy.c
59
 
        $(CC) $(CFLAGS) -c $(srcdir)/structcpy.c
60
 
 
61
 
libavcall.a : $(OBJECTS)
62
 
        $(RM) libavcall.a
63
 
        $(AR) $(AR_FLAGS) libavcall.a $(OBJECTS)
64
 
 
65
 
minitests.o : $(srcdir)/minitests.c avcall.h
66
 
        $(CC) $(CFLAGS) $(INCLUDES) -c $(srcdir)/minitests.c
67
 
 
68
 
minitests.s : $(srcdir)/minitests.c avcall.h
69
 
        $(CC) $(CFLAGS) $(INCLUDES) -S $(srcdir)/minitests.c
70
 
 
71
 
minitests.exe : minitests.o $(OBJECTS)
72
 
        $(CC) $(CFLAGS) minitests.o $(OBJECTS) -o minitests.exe
73
 
 
74
 
check : all minitests.exe
75
 
        minitests.exe > minitests.out
76
 
        LC_ALL=C uniq -u < minitests.out > minitests.output.$(HOST)
77
 
# You have to check by hand that minitests.output.$(HOST) is empty.
78
 
 
79
 
tests.o : $(srcdir)/tests.c avcall.h
80
 
        $(CC) $(CFLAGS) $(INCLUDES) -c $(srcdir)/tests.c
81
 
 
82
 
tests.s : $(srcdir)/tests.c avcall.h
83
 
        $(CC) $(CFLAGS) $(INCLUDES) -S $(srcdir)/tests.c
84
 
 
85
 
tests.exe : tests.o $(OBJECTS)
86
 
        $(CC) $(CFLAGS) tests.o $(OBJECTS) -o tests.exe
87
 
 
88
 
extracheck : all tests.exe
89
 
        tests.exe > tests.out
90
 
        LC_ALL=C uniq -u < tests.out > tests.output.$(HOST)
91
 
# You have to check by hand that tests.output.$(HOST) is empty.
92
 
 
93
 
mostlyclean : clean
94
 
 
95
 
clean : force
96
 
        $(RM) *.o *.a core
97
 
        $(RM) avcall-i386.asm
98
 
        $(RM) minitests.o minitests.s minitests.exe minitests.out
99
 
        $(RM) tests.o tests.s tests.exe tests.out
100
 
 
101
 
distclean : clean
102
 
        $(RM) config.status config.log config.cache Makefile avcall.h tests.output.*
103
 
 
104
 
maintainer-clean : distclean
105
 
 
106
 
force :
107