comparison uptools/atcmd/Makefile @ 385:ce3b57b8920b

fcup-smwrite program written, compiles
author Mychaela Falconia <falcon@freecalypso.org>
date Fri, 09 Mar 2018 20:43:53 +0000
parents 3eb92855f7b9
children b61b81d3cece
comparison
equal deleted inserted replaced
384:3eb92855f7b9 385:ce3b57b8920b
1 CC= gcc 1 CC= gcc
2 CFLAGS= -O2 2 CFLAGS= -O2
3 PROGS= fcup-at fcup-smdump fcup-smsend fcup-smsendmult fcup-smsendpdu 3 PROGS= fcup-at fcup-smdump fcup-smsend fcup-smsendmult fcup-smsendpdu \
4 fcup-smwrite
4 INSTBIN=/opt/freecalypso/bin 5 INSTBIN=/opt/freecalypso/bin
5 6
6 LIBCODING= ../libcoding/libcoding.a 7 LIBCODING= ../libcoding/libcoding.a
7 8
8 ATCMD_OBJS= atcmd.o atinterf.o 9 ATCMD_OBJS= atcmd.o atinterf.o
17 smsend_pdugen.o smsend_pduout.o smsend_text.o ${LIBCODING} 18 smsend_pdugen.o smsend_pduout.o smsend_text.o ${LIBCODING}
18 19
19 SMSENDP_OBJS= atinterf.o resp_parse.o smsend_cmgw.o smsend_pduin.o \ 20 SMSENDP_OBJS= atinterf.o resp_parse.o smsend_cmgw.o smsend_pduin.o \
20 smsend_pduout.o ${LIBCODING} 21 smsend_pduout.o ${LIBCODING}
21 22
23 SMWRITE_OBJS= atinterf.o smwrite.o ${LIBCODING}
24
22 all: ${PROGS} 25 all: ${PROGS}
23 26
24 fcup-at: ${ATCMD_OBJS} 27 fcup-at: ${ATCMD_OBJS}
25 ${CC} ${CFLAGS} -o $@ ${ATCMD_OBJS} 28 ${CC} ${CFLAGS} -o $@ ${ATCMD_OBJS}
26 29
34 ${CC} ${CFLAGS} -o $@ ${SMSENDM_OBJS} 37 ${CC} ${CFLAGS} -o $@ ${SMSENDM_OBJS}
35 38
36 fcup-smsendpdu: ${SMSENDP_OBJS} 39 fcup-smsendpdu: ${SMSENDP_OBJS}
37 ${CC} ${CFLAGS} -o $@ ${SMSENDP_OBJS} 40 ${CC} ${CFLAGS} -o $@ ${SMSENDP_OBJS}
38 41
42 fcup-smwrite: ${SMWRITE_OBJS}
43 ${CC} ${CFLAGS} -o $@ ${SMWRITE_OBJS}
44
39 install: ${PROGS} 45 install: ${PROGS}
40 mkdir -p ${INSTBIN} 46 mkdir -p ${INSTBIN}
41 install -c ${PROGS} ${INSTBIN} 47 install -c ${PROGS} ${INSTBIN}
42 48
43 clean: 49 clean: