2018-09-17 13:45:26 +02:00
|
|
|
LIB_FLAGS = -fvisibility=hidden -fPIC -DBUILDING_LIBDDDVB
|
|
|
|
|
|
|
|
all: libdddvb.so.1.0.1
|
|
|
|
|
|
|
|
%.o: %.c
|
|
|
|
$(CC) $(LIB_FLAGS) $(CFLAGS) -c $<
|
|
|
|
|
2019-07-24 12:43:49 +02:00
|
|
|
libdddvb.a: dvb.o dddvb.o tools.o config.o ca.o
|
2018-09-17 13:45:26 +02:00
|
|
|
$(AR) -cvq libdddvb.a $^
|
|
|
|
|
2019-07-24 12:43:49 +02:00
|
|
|
libdddvb.so.1.0.1: dvb.o dddvb.o tools.o config.o ca.o
|
2018-09-17 13:45:26 +02:00
|
|
|
$(CC) $(LIB_FLAGS) $(CFLAGS) -shared -Wl,-soname,libdddvb.so.1 -o libdddvb.so.1.0.1 $^ -lc
|
|
|
|
ln -sf libdddvb.so.1.0.1 libdddvb.so.1
|
|
|
|
ln -sf libdddvb.so.1.0.1 libdddvb.so
|
|
|
|
|
|
|
|
dddvb_test: dddvb_test.o
|
|
|
|
$(CC) -o dddvb_test $< -L . -l dddvb
|
|
|
|
|
|
|
|
clean:
|
2019-07-24 12:43:49 +02:00
|
|
|
-rm -f *.o
|