PROC=$(shell uname -m) DEBUG=-g #-pg INCLUDE=-I/usr/include CFLAGS=-pipe -fPIC -Wall -Wmissing-prototypes -Wmissing-declarations $(DEBUG) $(INCLUDE) -D_REENTRANT -D_GNU_SOURCE CFLAGS+=$(OPTIMIZE) CFLAGS+=-O6 CFLAGS+=$(shell if $(CC) -march=$(PROC) -S -o /dev/null -xc /dev/null >/dev/null 2>&1; then echo "-march=$(PROC)"; fi) CFLAGS+=$(shell if uname -m | grep -q ppc; then echo "-fsigned-char"; fi) LIBS=-ldl -lpthread -lm CC=gcc SHAREDOS=chan_cellphone.so OBJECTS=chan_cellphone.o CFLAGS+=-Wno-missing-prototypes -Wno-missing-declarations -DHAS_ASTERISK_1_2 all: $(SHAREDOS) clean: rm -f *.so *.o chan_cellphone.so: $(OBJECTS) $(CC) -shared -Xlinker -x -o $@ $^ -lbluetooth