FreeCalypso > hg > osmo-playpen
annotate 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 |
rev | line source |
---|---|
0
d87e6dbd32c2
osmo-euse-demo compiles and links
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
1 CC= gcc |
d87e6dbd32c2
osmo-euse-demo compiles and links
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
2 CFLAGS= -O2 -pthread -I/opt/osmocni2/include -I/usr/include/samba-4.0 |
d87e6dbd32c2
osmo-euse-demo compiles and links
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
3 PROG= osmo-euse-demo |
d87e6dbd32c2
osmo-euse-demo compiles and links
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
4 OBJS= osmo-euse-demo.o |
1
5cbd37c9b68b
euse-demo/Makefile: black magic to find shared libs at run time
Mychaela Falconia <falcon@freecalypso.org>
parents:
0
diff
changeset
|
5 OSMOLIB=-L/opt/osmocni2/lib -Wl,-rpath,/opt/osmocni2/lib -losmo-gsup-client \ |
5cbd37c9b68b
euse-demo/Makefile: black magic to find shared libs at run time
Mychaela Falconia <falcon@freecalypso.org>
parents:
0
diff
changeset
|
6 -losmogsm -losmocore -ltalloc |
0
d87e6dbd32c2
osmo-euse-demo compiles and links
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
7 |
d87e6dbd32c2
osmo-euse-demo compiles and links
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
8 all: ${PROG} |
d87e6dbd32c2
osmo-euse-demo compiles and links
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
9 |
d87e6dbd32c2
osmo-euse-demo compiles and links
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
10 ${PROG}: ${OBJS} |
d87e6dbd32c2
osmo-euse-demo compiles and links
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
11 ${CC} -o $@ ${OBJS} ${OSMOLIB} |
d87e6dbd32c2
osmo-euse-demo compiles and links
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
12 |
d87e6dbd32c2
osmo-euse-demo compiles and links
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
13 clean: |
d87e6dbd32c2
osmo-euse-demo compiles and links
Mychaela Falconia <falcon@freecalypso.org>
parents:
diff
changeset
|
14 rm -f *.o ${PROG} |