2019-10-09 12:30:41 +00:00
|
|
|
CFLAGS=-Wall -g $(shell pkg-config --cflags libosmocore) -I../ccid_common -I.
|
|
|
|
LIBS?=-lasan $(shell pkg-config --libs libosmocore)
|
2019-01-03 15:54:16 +00:00
|
|
|
|
2019-09-29 10:10:02 +00:00
|
|
|
all: ccid_functionfs hub_functionfs cuart_test cuart_fsm_test
|
2019-09-27 17:22:34 +00:00
|
|
|
|
2019-10-09 11:18:21 +00:00
|
|
|
ccid_functionfs: ccid_main_functionfs.o \
|
2019-09-30 19:46:44 +00:00
|
|
|
cuart_driver_tty.o \
|
|
|
|
utils_ringbuffer.o \
|
2019-05-18 22:45:17 +00:00
|
|
|
logging.o \
|
2019-09-30 19:46:44 +00:00
|
|
|
../ccid_common/cuart.o \
|
2019-10-09 11:18:21 +00:00
|
|
|
../ccid_common/ccid_proto.o \
|
2019-09-30 19:46:44 +00:00
|
|
|
../ccid_common/ccid_device.o \
|
|
|
|
../ccid_common/ccid_slot_fsm.o \
|
2019-11-28 16:30:30 +00:00
|
|
|
../ccid_common/iso7816_3.o \
|
2019-09-30 19:46:44 +00:00
|
|
|
../ccid_common/iso7816_fsm.o
|
2019-10-09 12:30:41 +00:00
|
|
|
$(CC) $(CFLAGS) -o $@ $^ $(LIBS) -laio
|
2019-01-03 15:54:16 +00:00
|
|
|
|
2019-09-12 13:16:43 +00:00
|
|
|
hub_functionfs: hub_main_functionfs.o
|
2019-10-09 12:30:41 +00:00
|
|
|
$(CC) $(CFLAGS) -o $@ $^ $(LIBS) -laio
|
2019-09-12 13:16:43 +00:00
|
|
|
|
2019-09-27 17:22:34 +00:00
|
|
|
cuart_test: cuart_test.o \
|
|
|
|
cuart_driver_tty.o \
|
|
|
|
utils_ringbuffer.o \
|
|
|
|
../ccid_common/cuart.o
|
|
|
|
$(CC) $(CFLAGS) -o $@ $^ $(LIBS)
|
|
|
|
|
2019-09-29 10:10:02 +00:00
|
|
|
cuart_fsm_test: cuart_fsm_test.o \
|
|
|
|
logging.o \
|
|
|
|
cuart_driver_tty.o \
|
|
|
|
utils_ringbuffer.o \
|
|
|
|
../ccid_common/iso7816_fsm.o \
|
2019-11-28 16:30:30 +00:00
|
|
|
../ccid_common/iso7816_3.o \
|
2019-09-29 10:10:02 +00:00
|
|
|
../ccid_common/cuart.o
|
|
|
|
$(CC) $(CFLAGS) -o $@ $^ $(LIBS) $(shell pkg-config --libs libosmosim)
|
|
|
|
|
2019-01-03 15:54:16 +00:00
|
|
|
%.o: %.c
|
2019-05-14 19:30:45 +00:00
|
|
|
$(CC) $(CFLAGS) -o $@ -c $^
|
2019-01-03 15:54:16 +00:00
|
|
|
|
|
|
|
clean:
|
2019-09-29 10:10:02 +00:00
|
|
|
rm -f ccid_functionfs hub_functionfs cuart_test cuart_fsm_test *.o
|