comparison uptools/atcmd/Makefile @ 362:89fe66cb60f6

fcup-smsend program put together, compiles
author Mychaela Falconia <falcon@freecalypso.org>
date Mon, 05 Mar 2018 01:47:18 +0000
parents 02d6c8469535
children 9f856f843620
comparison
equal deleted inserted replaced
361:ae2556e256a4 362:89fe66cb60f6
1 CC= gcc 1 CC= gcc
2 CFLAGS= -O2 2 CFLAGS= -O2
3 PROGS= fcup-at fcup-smdump 3 PROGS= fcup-at fcup-smdump fcup-smsend
4 INSTBIN=/opt/freecalypso/bin 4 INSTBIN=/opt/freecalypso/bin
5 5
6 LIBCODING= ../libcoding/libcoding.a 6 LIBCODING= ../libcoding/libcoding.a
7 7
8 ATCMD_OBJS= atcmd.o atinterf.o 8 ATCMD_OBJS= atcmd.o atinterf.o
9 9
10 SMDUMP_OBJS= atinterf.o resp_parse.o smdump.o ${LIBCODING} 10 SMDUMP_OBJS= atinterf.o resp_parse.o smdump.o ${LIBCODING}
11
12 SMSEND_OBJS= atinterf.o resp_parse.o smsend_basic.o smsend_cmgw.o \
13 smsend_pdu.o smsend_text.o ${LIBCODING}
11 14
12 all: ${PROGS} 15 all: ${PROGS}
13 16
14 fcup-at: ${ATCMD_OBJS} 17 fcup-at: ${ATCMD_OBJS}
15 ${CC} ${CFLAGS} -o $@ ${ATCMD_OBJS} 18 ${CC} ${CFLAGS} -o $@ ${ATCMD_OBJS}
16 19
17 fcup-smdump: ${SMDUMP_OBJS} 20 fcup-smdump: ${SMDUMP_OBJS}
18 ${CC} ${CFLAGS} -o $@ ${SMDUMP_OBJS} 21 ${CC} ${CFLAGS} -o $@ ${SMDUMP_OBJS}
19 22
23 fcup-smsend: ${SMSEND_OBJS}
24 ${CC} ${CFLAGS} -o $@ ${SMSEND_OBJS}
25
20 install: ${PROGS} 26 install: ${PROGS}
21 mkdir -p ${INSTBIN} 27 mkdir -p ${INSTBIN}
22 install -c ${PROGS} ${INSTBIN} 28 install -c ${PROGS} ${INSTBIN}
23 29
24 clean: 30 clean: