mirror of https://github.com/gityf/crc.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
584 B
Makefile
24 lines
584 B
Makefile
include ../Makefile.comm
|
|
|
|
INC += -I.
|
|
|
|
SOURCES = $(foreach d,.,$(wildcard $(d)/*.c))
|
|
OBJS = $(patsubst %.c, %.o, $(SOURCES))
|
|
OBJS += crchash.o
|
|
|
|
CC += $(SHARED_FLAG)
|
|
all : libcrc.a
|
|
libcrc.a : $(OBJS)
|
|
ar -rus $@ $^
|
|
@echo ""
|
|
@echo "+--------------------------------------------+"
|
|
@echo "| Finish compilation |"
|
|
@echo "+--------------------------------------------+"
|
|
@echo "| Thanks using libcrc.a |"
|
|
@echo "| copyright(c)Wang Yaofu voipman@qq.com |"
|
|
@echo "+--------------------------------------------+"
|
|
|
|
clean:
|
|
rm -rf *.o *.a
|
|
|