Harald Welte | f736559 | 2020-04-15 21:48:45 +0200 | [diff] [blame^] | 1 | LIBS=-lpthread -lsctp $(shell pkg-config --libs libosmocore libosmovty libosmo-netif jansson libnl-route-3.0) |
| 2 | INC=$(shell pkg-config --cflags libosmocore libosmovty libosmo-netif jansson libnl-route-3.0) |
| 3 | VER=$(shell git describe --tags) |
| 4 | CFLAGS=-Wall -g -DPACKAGE_VERSION='"$(VER)"' $(INC) |
| 5 | |
| 6 | all: osmo-uecups-daemon |
| 7 | |
| 8 | %.o: %.c |
| 9 | $(CC) $(CFLAGS) -o $@ -c $^ |
| 10 | |
| 11 | osmo-uecups-daemon: utility.o netdev.o netns.o tun_device.o \ |
| 12 | gtp_endpoint.o gtp_tunnel.o daemon_vty.o main.o |
| 13 | $(CC) $(LDFLAGS) -o $@ $^ $(LIBS) |
| 14 | |
| 15 | clean: |
| 16 | @rm -f *.o osmo-uecups-daemon |