WITH-CRYPTO = 42 # comment this out, if no libcrypto should be used
#WITH-ASTERISK = 42 # comment this out, if you don't require built-in Asterisk channel driver.
WITH-CRYPTO = 42 # comment this out, if no libcrypto should be used
#WITH-ASTERISK = 42 # comment this out, if you don't require built-in Asterisk channel driver.
# note: check your location and the names of libraries.
# select location to install
INSTALL_BIN = /usr/local/bin
INSTALL_DATA = /usr/local/lcr
# note: check your location and the names of libraries.
# select location to install
INSTALL_BIN = /usr/local/bin
INSTALL_DATA = /usr/local/lcr
trace.o: trace.c *.h Makefile
$(PP) -c $(CFLAGS) trace.c -o trace.o
chan_lcr.o: chan_lcr.c *.h Makefile
trace.o: trace.c *.h Makefile
$(PP) -c $(CFLAGS) trace.c -o trace.o
chan_lcr.o: chan_lcr.c *.h Makefile
-$(LCRADMIN): admin_client.c cause.c *.h Makefile
- $(PP) $(LIBDIR) $(CFLAGS) $(CURSES) -lm admin_client.c cause.c \
+$(LCRADMIN): lcradmin.c cause.c *.h Makefile
+ $(PP) $(LIBDIR) $(CFLAGS_LCRADMIN) $(CURSES) -lm lcradmin.c cause.c \
-$(CHAN_LCR): chan_lcr.o bchannel.o
- $(CC) $(LIBDIR) chan_lcr.o bchannel.o \
- $(CHANLIBS) -o $(CHAN_LCR)
+$(CHAN_LCR): chan_lcr.o bchannel.o *.h Makefile
+ gcc -shared -Xlinker -x $(LDFLAGS) -o $(CHAN_LCR) chan_lcr.o bchannel.o
+