Initial commit
This commit is contained in:
commit
fdfefe7d55
31 changed files with 3242 additions and 0 deletions
30
Makefile
Normal file
30
Makefile
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
#
|
||||
# Archive Makefile
|
||||
#
|
||||
|
||||
DEFS := -D__DEBUG__
|
||||
LIBS := `mysql_config --libs`
|
||||
CFLAGS := -Werror -g $(LIBS) $(DEFS)
|
||||
CC := gcc
|
||||
|
||||
SOURCES := \
|
||||
src/arch.c \
|
||||
src/arch/mysql.c \
|
||||
src/indexer.c \
|
||||
src/common/path.c \
|
||||
src/common/rbtree.c \
|
||||
src/fs/notify_inotify.c \
|
||||
src/fs/notify_event.c \
|
||||
src/fs/tree.c
|
||||
|
||||
BUILD := ./build
|
||||
|
||||
all :
|
||||
make me
|
||||
|
||||
me :
|
||||
mkdir -p $(BUILD)
|
||||
$(CC) $(CFLAGS) $(SOURCES) -o $(BUILD)/arch
|
||||
|
||||
clean :
|
||||
rm -fr $(BUILD)
|
||||
Reference in a new issue