view euse-demo/Makefile @ 1:5cbd37c9b68b

euse-demo/Makefile: black magic to find shared libs at run time
author Mychaela Falconia <falcon@freecalypso.org>
date Tue, 01 Aug 2023 17:22:11 -0800
parents d87e6dbd32c2
children
line wrap: on
line source

CC=	gcc
CFLAGS=	-O2 -pthread -I/opt/osmocni2/include -I/usr/include/samba-4.0
PROG=	osmo-euse-demo
OBJS=	osmo-euse-demo.o
OSMOLIB=-L/opt/osmocni2/lib -Wl,-rpath,/opt/osmocni2/lib -losmo-gsup-client \
	-losmogsm -losmocore -ltalloc

all:	${PROG}

${PROG}:	${OBJS}
	${CC} -o $@ ${OBJS} ${OSMOLIB}

clean:
	rm -f *.o ${PROG}