]> oss.titaniummirror.com Git - tinyos-2.x.git/commitdiff
Allow the libgetenv-32.so and libtoscomm-32.so to fail and fix a typo in libgetenv...
authorrazvanm <razvanm>
Tue, 10 Nov 2009 05:35:59 +0000 (05:35 +0000)
committerrazvanm <razvanm>
Tue, 10 Nov 2009 05:35:59 +0000 (05:35 +0000)
tools/tinyos/java/env/Makefile.am
tools/tinyos/java/serial/Makefile.am

index 2d03f2d513ffd9d3c489f5065af4829cdfd25440..f451e8060464fd54ac6d24f39a965526af770d2d 100644 (file)
@@ -14,12 +14,13 @@ libgetenv_32_so_SOURCES = net_tinyos_util_Env.h net_tinyos_util_Env.c
 libgetenv_64_so_SOURCES = $(libgetenv_32_so_SOURCES)
 
 libgetenv-32.so : net_tinyos_util_Env.h net_tinyos_util_Env.c
-       $(CC) $(SOFLAGS) -m32 net_tinyos_util_Env.c -o$@
+       $(CC) $(SOFLAGS) -m32 net_tinyos_util_Env.c -o$@ || \
+       (echo 32-bit libgetenv.so NOT GENERATED - DO NOT USE THIS RUN TO BUILD AN RPM; echo Press return to continue; read; rm -f $@)
 
 libgetenv-64.so : net_tinyos_util_Env.h net_tinyos_util_Env.c
        @echo $(CC) $(SOFLAGS) -m64 net_tinyos_util_Env.c -o$@
        @$(CC) $(SOFLAGS) -m64 net_tinyos_util_Env.c -o$@ || \
-       (echo 64-bit libgetenv.so NOT GENERATED - DO NOT USE THIS RUN TO BUILD AN RPM; echo Press return to continue; read; rm -f libtoscomm-64.so)
+       (echo 64-bit libgetenv.so NOT GENERATED - DO NOT USE THIS RUN TO BUILD AN RPM; echo Press return to continue; read; rm -f $@)
 
 getenv.dll: net_tinyos_util_Env.h net_tinyos_util_Env.c
        gcc -shared -o$@ -mno-cygwin "-I$(JDK)/include" "-I$(JDK)/include/win32" -D_JNI_IMPLEMENTATION -Wl,--kill-at net_tinyos_util_Env.c
index 88e2ed5cec4df3ed22d83acab8233365c890ef7f..5b63d8b73c30972560ceeb2913d7ea5198ee49ce 100644 (file)
@@ -34,12 +34,13 @@ libtoscomm.jnilib:  $(libtoscomm_jnilib_SOURCES)
         -o $@ NativeSerial_darwin.cpp
 
 libtoscomm-32.so: $(libtoscomm_so_SOURCES)
-       $(CXX) -m32 $(SOFLAGS) -o $@ NativeSerial_linux.cpp
+       $(CXX) -m32 $(SOFLAGS) -o $@ NativeSerial_linux.cpp || \
+       (echo 32-bit libtoscomm.so NOT GENERATED - DO NOT USE THIS RUN TO BUILD AN RPM; echo Press return to continue; read; rm -f $@)
 
 libtoscomm-64.so: $(libtoscomm_so_SOURCES)
        @echo $(CXX) -m64 $(SOFLAGS) -o $@ NativeSerial_linux.cpp
        @$(CXX) -m64 $(SOFLAGS) -o $@ NativeSerial_linux.cpp || \
-       (echo 64-bit libtoscomm.so NOT GENERATED - DO NOT USE THIS RUN TO BUILD AN RPM; echo Press return to continue; read; rm -f libtoscomm-64.so)
+       (echo 64-bit libtoscomm.so NOT GENERATED - DO NOT USE THIS RUN TO BUILD AN RPM; echo Press return to continue; read; rm -f $@)
 
 toscomm.dll: $(toscomm_dll_SOURCES)
        $(CXX) -O2 -s -mno-cygwin -shared "-I$(JDK)/include" "-I$(JDK)/include/win32" -D_JNI_IMPLEMENTATION -Wl,--kill-at \