comparison miscutil/Makefile @ 902:8ddb16a37273

tree org: move TCH and VM utils from miscutil to tchtools
author Mychaela Falconia <falcon@freecalypso.org>
date Wed, 28 Dec 2022 07:52:30 +0000
parents d2fccd82a83e
children
comparison
equal deleted inserted replaced
901:2e6764022292 902:8ddb16a37273
1 CC= gcc 1 CC= gcc
2 CFLAGS= -O2 2 CFLAGS= -O2
3 PROGS= arfcn2ti fc-fr2tch fc-gsm2vm fc-pulse-dtr fc-pulse-rts fc-rgbconv \ 3 PROGS= arfcn2ti fc-pulse-dtr fc-pulse-rts fc-rgbconv fc-serterm imei-luhn \
4 fc-serterm fc-tch2fr fc-vm2hex imei-luhn make-imeisv mokosrec2bin \ 4 make-imeisv mokosrec2bin srec-regions ti2arfcn
5 srec-regions ti2arfcn
6 SCRIPTS=c139explore pirexplore 5 SCRIPTS=c139explore pirexplore
7 6
8 INSTALL_PREFIX= /opt/freecalypso 7 INSTALL_PREFIX= /opt/freecalypso
9 8
10 INSTBIN=${INSTALL_PREFIX}/bin 9 INSTBIN=${INSTALL_PREFIX}/bin
11 10
12 all: ${PROGS} 11 all: ${PROGS}
13 12
14 FR2TCH_OBJS= fc-fr2tch.o gsm0610.o
15 GSM2VM_OBJS= fc-gsm2vm.o gsm0610.o
16 TCH2FR_OBJS= fc-tch2fr.o gsm0610.o
17 SERTERM_OBJS= fc-serterm.o ttypassthru.o ../libserial/libserial.a 13 SERTERM_OBJS= fc-serterm.o ttypassthru.o ../libserial/libserial.a
18 14
19 arfcn2ti: arfcn2ti.c 15 arfcn2ti: arfcn2ti.c
20 ${CC} ${CFLAGS} -o $@ $@.c 16 ${CC} ${CFLAGS} -o $@ $@.c
21
22 fc-fr2tch: ${FR2TCH_OBJS}
23 ${CC} ${CFLAGS} -o $@ ${FR2TCH_OBJS}
24
25 fc-gsm2vm: ${GSM2VM_OBJS}
26 ${CC} ${CFLAGS} -o $@ ${GSM2VM_OBJS}
27 17
28 fc-pulse-dtr: fc-pulse-dtr.c 18 fc-pulse-dtr: fc-pulse-dtr.c
29 ${CC} ${CFLAGS} -o $@ $@.c 19 ${CC} ${CFLAGS} -o $@ $@.c
30 20
31 fc-pulse-rts: fc-pulse-rts.c 21 fc-pulse-rts: fc-pulse-rts.c
37 fc-serterm: ${SERTERM_OBJS} 27 fc-serterm: ${SERTERM_OBJS}
38 ${CC} ${CFLAGS} -o $@ ${SERTERM_OBJS} 28 ${CC} ${CFLAGS} -o $@ ${SERTERM_OBJS}
39 29
40 ttypassthru.o: ../loadtools/ttypassthru.c 30 ttypassthru.o: ../loadtools/ttypassthru.c
41 ${CC} ${CFLAGS} -c -o $@ $< 31 ${CC} ${CFLAGS} -c -o $@ $<
42
43 fc-tch2fr: ${TCH2FR_OBJS}
44 ${CC} ${CFLAGS} -o $@ ${TCH2FR_OBJS}
45
46 fc-vm2hex: fc-vm2hex.c
47 ${CC} ${CFLAGS} -o $@ $@.c
48 32
49 imei-luhn: imei-luhn.c 33 imei-luhn: imei-luhn.c
50 ${CC} ${CFLAGS} -o $@ $@.c 34 ${CC} ${CFLAGS} -o $@ $@.c
51 35
52 make-imeisv: make-imeisv.c 36 make-imeisv: make-imeisv.c