3 LIBS
=..
/common
/libcommon.a
7 mopprobe
: ${OBJS} version.o
$(LIBS
)
8 $(CC
) -o mopprobe version.o
${OBJS} ${LIBS}
11 $(CC
) -c
$(CFLAGS
) ${INCL} $<
14 rm -f
*.o
*~ mopprobe VERSION version.
*
18 ln
-sf ..
/common
/VERSION VERSION
19 rm -f version.c
; sed
's/.*/char version[] = "&";/' VERSION
> version.c
20 set
`sed 's/\([0-9]*\)\.\([0-9]*\).*/\1 \2/' VERSION` ; \
21 { echo
'#define VERSION_MAJOR' $$1 ; \
22 echo
'#define VERSION_MINOR' $$2 ; } > version.h