#not write libtest%.la because libtest.la will not match to this pattern
#(% expands to non-empty string)

CC_SPECIAL_FLAGS := $(shell (cat $(T2C_ROOT)/cc_special_flags) 2>/dev/null)

libtes%.la :
	libtool --tag=gcc --mode=compile $(CC) -g -O $(CC_SPECIAL_FLAGS) -c -DF=tes$* -o tes$*.o $(ROOT_DIR)/common_module.c
	libtool --tag=gcc --mode=link $(CC) -g -02 $(CC_SPECIAL_FLAGS) -no-undefined -O -o libtes$*.la tes$*.lo -rpath /usr/local/lib -lm

clean::
	rm -rf ./.libs
	rm -f ./tes*.o ./tes*.lo
	rm -f ./libtes*.la

.PHONY: clean
