diff libgsmfr2/Makefile @ 453:19f1aa01ea10

new approach to config & build for ThemWi software
author Mychaela Falconia <falcon@freecalypso.org>
date Fri, 10 May 2024 05:45:46 +0000
parents 4db5fc10fd1a
children cb1d1ea7f2c5
line wrap: on
line diff
--- a/libgsmfr2/Makefile	Fri May 10 03:45:47 2024 +0000
+++ b/libgsmfr2/Makefile	Fri May 10 05:45:46 2024 +0000
@@ -1,5 +1,3 @@
-CC=	gcc
-CFLAGS=	-O2
 OBJS=	add.o comfort_noise.o dec_main.o dec_wrap.o dhf.o ed_state.o \
 	enc_homing.o enc_main.o enc_wrap.o full_dec.o long_term.o lpc.o \
 	pack_frame.o pack_frame2.o pp_bad.o pp_good.o pp_state.o preprocess.o \
@@ -8,7 +6,8 @@
 HDRS=	ed_internal.h ed_state.h pp_internal.h pp_state.h tw_gsmfr.h typedef.h
 LIB=	libgsmfr2.a
 
-INSTALL_PREFIX=	/usr/local
+include ../config.defs
+INSTALL_PREFIX=${DESTDIR}${PREFIX}
 
 all:	${LIB}