Harald Welte | b3dae30 | 2015-08-30 12:20:09 +0200 | [diff] [blame] | 1 | LIBFFASN1_DIR=../../../kommerz/sysmocom/git/admin/ffasn1c/libffasn1 |
| 2 | |
| 3 | CFLAGS=-g -Wall `pkg-config --cflags libosmocore libosmovty libosmogsm` -I$(LIBFFASN1_DIR) |
Harald Welte | ee77cff | 2015-08-30 16:57:53 +0200 | [diff] [blame^] | 4 | LDFLAGS=`pkg-config --libs libosmocore libosmovty libosmogsm` -lsctp |
Harald Welte | b3dae30 | 2015-08-30 12:20:09 +0200 | [diff] [blame] | 5 | |
| 6 | all: hnbgw |
| 7 | |
Harald Welte | ee77cff | 2015-08-30 16:57:53 +0200 | [diff] [blame^] | 8 | hnbgw: hnbgw.o hnbgw_hnbap.o hnbap.o asn1helpers.o $(LIBFFASN1_DIR)/libffasn1.a $(LIBFFASN1_DIR)/libffasn1_runtime_stdc.a |
Harald Welte | b3dae30 | 2015-08-30 12:20:09 +0200 | [diff] [blame] | 9 | $(CC) $(LDFLAGS) -o $@ $^ |
| 10 | |
| 11 | %.o: %.c |
| 12 | $(CC) $(CFLAGS) -o $@ -c $^ |
| 13 | |
| 14 | clean: |
| 15 | @rm -f hmbgw *.o |