~ubuntu-branches/ubuntu/quantal/libgc/quantal

« back to all changes in this revision

Viewing changes to libatomic_ops-1.2/src/Makefile.msft

  • Committer: Bazaar Package Importer
  • Author(s): Christoph Egger
  • Date: 2011-02-19 12:19:56 UTC
  • mfrom: (1.3.2 upstream) (0.1.5 experimental)
  • mto: This revision was merged to the branch mainline in revision 14.
  • Revision ID: james.westby@ubuntu.com-20110219121956-67rb69xlt5nud3v2
Tags: 1:7.1-5
Upload to unstable

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#
 
2
# Copyright (c) 2003-2005 Hewlett-Packard Developlment Company, L.P.
 
3
 
4
# The really trivial win32/VC++ Makefile.  Note that atomic_ops.c isn't useful.
 
5
# And we rely on a pre-built test_atomic_include.h and generalize-small.h,
 
6
# since we can't rely on sed.
 
7
# Win32 clients only need to include the header files.
 
8
# To install, copy atomic_ops.h and the atomic_ops/... tree to your favorite
 
9
# include directory.
 
10
 
 
11
#MY_CPU=X86
 
12
#CPU=$(MY_CPU)
 
13
#!include <ntwin32.mak>
 
14
 
 
15
LIB_OBJS=atomic_ops_stack.obj atomic_ops_malloc.obj
 
16
 
 
17
all: check
 
18
 
 
19
atomic_ops_stack.obj:
 
20
        cl -O2 -c -DAO_ASSUME_WINDOWS98 atomic_ops_stack.c
 
21
 
 
22
atomic_ops_malloc.obj:
 
23
        cl -O2 -c -DAO_ASSUME_WINDOWS98 atomic_ops_malloc.c
 
24
 
 
25
test_atomic: ..\tests\test_atomic.c ..\tests\test_atomic_include.h
 
26
        cl -O2 -I. -DAO_ASSUME_WINDOWS98 ..\tests\test_atomic.c -o test_atomic
 
27
 
 
28
test_atomic_w95: ..\tests\test_atomic.c ..\tests\test_atomic_include.h
 
29
        cl -O2 -I. ..\tests\test_atomic.c -o test_atomic_w95
 
30
 
 
31
test_malloc: ..\tests\test_malloc.c ..\tests\test_atomic_include.h \
 
32
             libatomic_ops_gpl.lib 
 
33
        cl -O2 -DAO_ASSUME_WINDOWS98 -I. ..\tests\test_malloc.c -o test_malloc libatomic_ops_gpl.lib
 
34
 
 
35
libatomic_ops_gpl.lib: $(LIB_OBJS)
 
36
        lib /MACHINE:i386 /out:libatomic_ops_gpl.lib $(LIB_OBJS)
 
37
 
 
38
check:  test_atomic test_atomic_w95 test_malloc
 
39
        echo The following will print lots of \"Missing ...\" messages.
 
40
        test_atomic_w95
 
41
        echo The following will print some \"Missing ...\" messages.
 
42
        test_atomic
 
43
        test_malloc
 
44
 
 
45