From: Ivan Maidanski Date: Tue, 9 Aug 2011 16:42:05 +0000 (+0400) Subject: Improve Makefile for MS VC++. X-Git-Tag: libatomic_ops-7_3alpha2~106 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9302b469b04a6fba174637ac5c27fbbbf3713c57;p=libatomic_ops Improve Makefile for MS VC++. * src/Makefile.msft: Remove list_atomic.c from the comment. * src/Makefile.msft: Compile with -W3 option; replace -o option with /Fo. * src/Makefile.msft (clean): New target. --- diff --git a/src/Makefile.msft b/src/Makefile.msft index 2aa40c2..2b9a5c4 100644 --- a/src/Makefile.msft +++ b/src/Makefile.msft @@ -3,9 +3,9 @@ # # The really trivial win32/VC++ Makefile. Note that atomic_ops.c isn't useful. # And we rely on a pre-built test_atomic_include.h and generalize-small.h, -# since we can't rely on sed. But we don't keep list_atomic.c and -# test_atomic_include.h in the development repository any longer, so if you -# want to do "make check" for the sources obtained from the repository then +# since we can't rely on sed. But we don't keep test_atomic_include.h in +# the development repository any longer, so if you want to do "make check" +# for the sources obtained from the repository then # do "autoreconf -vif; ./configure; make check" in Cygwin first. # Win32 clients only need to include the header files. # To install, copy atomic_ops.h and the atomic_ops/... tree to your favorite @@ -20,21 +20,22 @@ LIB_OBJS=atomic_ops_stack.obj atomic_ops_malloc.obj all: libatomic_ops_gpl.lib atomic_ops_stack.obj: - cl -O2 -c -DAO_ASSUME_WINDOWS98 atomic_ops_stack.c + cl -W3 -O2 -c -DAO_ASSUME_WINDOWS98 atomic_ops_stack.c atomic_ops_malloc.obj: - cl -O2 -c -DAO_ASSUME_WINDOWS98 atomic_ops_malloc.c + cl -W3 -O2 -c -DAO_ASSUME_WINDOWS98 atomic_ops_malloc.c test_atomic: ..\tests\test_atomic.c ..\tests\test_atomic_include.h - cl -O2 -I. -DAO_ASSUME_WINDOWS98 ..\tests\test_atomic.c -o test_atomic + cl -W3 -O2 -I. -DAO_ASSUME_WINDOWS98 ..\tests\test_atomic.c \ + /Fo.\test_atomic test_atomic_w95: ..\tests\test_atomic.c ..\tests\test_atomic_include.h - cl -O2 -I. ..\tests\test_atomic.c -o test_atomic_w95 + cl -W3 -O2 -I. ..\tests\test_atomic.c /Fo.\test_atomic_w95 test_malloc: ..\tests\test_malloc.c ..\tests\test_atomic_include.h \ libatomic_ops_gpl.lib - cl -O2 -DAO_ASSUME_WINDOWS98 -I. ..\tests\test_malloc.c \ - -o test_malloc libatomic_ops_gpl.lib + cl -W3 -O2 -DAO_ASSUME_WINDOWS98 -I. ..\tests\test_malloc.c \ + /Fo.\test_malloc libatomic_ops_gpl.lib libatomic_ops_gpl.lib: $(LIB_OBJS) lib /MACHINE:i386 /out:libatomic_ops_gpl.lib $(LIB_OBJS) @@ -45,3 +46,6 @@ check: test_atomic test_atomic_w95 test_malloc echo The following will print some \"Missing ...\" messages. test_atomic test_malloc + +clean: + del *.exe *.obj libatomic_ops_gpl.lib