aboutsummaryrefslogtreecommitdiffstats
path: root/asn1c/tests/check-assembly.sh
diff options
context:
space:
mode:
authorLev Walkin <vlm@lionet.info>2004-08-25 01:34:11 +0000
committerLev Walkin <vlm@lionet.info>2004-08-25 01:34:11 +0000
commit4ce78cae9ec80c4285809de08a26c7df5258520a (patch)
tree9901eb4852901350f45c88f897b7650b4bc81e5e /asn1c/tests/check-assembly.sh
parentc7d17be4587edfb4fb3d7d1f0b50f286aac311f9 (diff)
avoided compilation warnings on gcc 3.3.x systems
Diffstat (limited to 'asn1c/tests/check-assembly.sh')
-rwxr-xr-xasn1c/tests/check-assembly.sh22
1 files changed, 2 insertions, 20 deletions
diff --git a/asn1c/tests/check-assembly.sh b/asn1c/tests/check-assembly.sh
index 11571fc5..a0b0fdb1 100755
--- a/asn1c/tests/check-assembly.sh
+++ b/asn1c/tests/check-assembly.sh
@@ -43,26 +43,8 @@ CFLAGS=\${COMMON_FLAGS} ${CFLAGS}
CXXFLAGS=\${COMMON_FLAGS} ${CXXFLAGS}
all: check-executable
-check-executable: compiled-module object-files
- \$(CC) \$(CFLAGS) -o check-executable *.o
-
-# Cannot track dependencies automatically because files are not known beforehand
-object-files: *.c*
- @for sfile in *.c; do \\
- ofile=\`echo "\$\$sfile" | sed -e 's/\.c[c]*\$\$/.o/'\`; \\
- if [ "\$\$sfile" -nt "\$\$ofile" ]; then \\
- echo "\$(CC) \$(CFLAGS) -o \$\$ofile -c \$\$sfile"; \\
- \$(CC) \$(CFLAGS) -o \$\$ofile -c \$\$sfile; \\
- fi; \\
- done
- @for sfile in *.cc; do \\
- ofile=\`echo "\$\$sfile" | sed -e 's/\.c[c]*\$\$/.o/'\`; \\
- if [ "\$\$sfile" -nt "\$\$ofile" ]; then \\
- echo "\$(CXX) \$(CXXFLAGS) -o \$\$ofile -c \$\$sfile";\\
- \$(CXX) \$(CXXFLAGS) -o \$\$ofile -c \$\$sfile; \\
- fi; \\
- done
- @touch object-files
+check-executable: compiled-module *.c*
+ \$(CC) \$(CFLAGS) -o check-executable *.c*
# Compile the corresponding .asn1 spec.
compiled-module: ${asn_module} ../../asn1c