| | |
| | | # archive to a static library, named lib${subdir_name}.a |
| | | OBJFILES = $(patsubst %.c,%,$(wildcard *.c)) |
| | | SUBSRCS = $(shell find . -follow -maxdepth 1 -type d|sed -n 's/.\///p'|grep -v 'libs' \ |
| | | |grep -v 'etc' | grep -v '.svn'|grep -v '.git'|grep -v 'include'|grep -v 'bin') |
| | | | grep -v '.svn'|grep -v '.git'|grep -v 'include'|grep -v 'bin') |
| | | |
| | | # Add the subdir compiled static library into LDFLAGS |
| | | #LDFLAGS+=$(patsubst %,-L%,$(SUBSRCS)) |
| | |
| | | |
| | | .PHONY: all |
| | | |
| | | all: entry prepare binary install |
| | | all: entry prepare binary |
| | | |
| | | prepare: |
| | | @if [ ! -L cp_library ] ; then \ |