FreeCalypso > hg > freecalypso-tools
view uptools/libcoding/Makefile @ 479:f2a040324509
Makefile hierarchy: CFLAGS override-ability actually works now
The original version was broken in that CFLAGS=${CFLAGS} passing was
done without quotes, which breaks as soon as there is a space in the
user-set CFLAGS. Changing it to CFLAGS="${CFLAGS}" makes it work
as originally intended.
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Thu, 14 Feb 2019 04:59:23 +0000 |
parents | f7228c18463a |
children | f023a1c187a9 |
line wrap: on
line source
CC= gcc CFLAGS= -O2 OBJS= alpha_addr.o decode_helpers.o grokdcs.o gsm7_decode.o \ gsm7_decode_tables.o gsm7_encode.o gsm7_encode_table.o gsm7_pack.o \ gsm7_unpack.o gsmtime.o hexdecode.o hexdump.o hexencode.o \ number_decode.o number_encode.o scaddr.o sms_submit.o sms_submit8.o \ ucs2_bigend.o ucs2_decode.o utf8_decode.o utf8_decode2.o LIB= libcoding.a all: ${LIB} ${LIB}: ${OBJS} ar rcu $@ ${OBJS} ranlib $@ clean: rm -f *.[oa] errs