imgtec-ci20: genimage config/ u-boot env
[openadk.git] / package / mopd / src / mopprobe / Makefile
blob3b64d5f7117a65fc5d1fe68357a5e0f26a75e84d
1 OBJS=mopprobe.o
2 INCL=-I../ -I../common
3 LIBS=../common/libcommon.a
5 all: mopprobe
7 mopprobe: ${OBJS} version.o $(LIBS)
8 $(CC) -o mopprobe version.o ${OBJS} ${LIBS}
10 .c.o: .c
11 $(CC) -c $(CFLAGS) ${INCL} $<
13 clean:
14 rm -f *.o *~ mopprobe VERSION version.*
16 version.o: version.c
17 version.c version.h:
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