lua
This commit is contained in:
parent
d87abd3ec0
commit
92ccea0883
4 changed files with 44 additions and 4 deletions
22
Makefile
22
Makefile
|
|
@ -12,6 +12,18 @@ SRC := $(wildcard *.c)
|
|||
OBJ := $(SRC:.c=.o)
|
||||
ELF := $(SRC:.c=.elf)
|
||||
|
||||
SUBDIRS += buf
|
||||
SUBDIRS += cjson
|
||||
SUBDIRS += dynbuf
|
||||
SUBDIRS += filters
|
||||
SUBDIRS += hashmap
|
||||
SUBDIRS += linalg
|
||||
SUBDIRS += lua_advanced
|
||||
SUBDIRS += lua_embed
|
||||
SUBDIRS += message
|
||||
SUBDIRS += socket
|
||||
SUBDIRS += sqlite
|
||||
|
||||
%.o: %.c
|
||||
@echo CC $@
|
||||
@$(CC) $(CFLAGS) -c -o $@ $<
|
||||
|
|
@ -21,6 +33,9 @@ ELF := $(SRC:.c=.elf)
|
|||
@$(CC) $(LIBS) -o $@ $<
|
||||
|
||||
all: $(ELF)
|
||||
@for dir in $(SUBDIRS); do \
|
||||
$(MAKE) -C $$dir; \
|
||||
done
|
||||
|
||||
sub:
|
||||
@-find . -mindepth 1 -maxdepth 1 -type d -exec make --no-print-directory -C {} \;
|
||||
|
|
@ -35,8 +50,9 @@ format:
|
|||
clang-format -i $(shell git ls-files '*.c' '*.h')
|
||||
|
||||
clean:
|
||||
@echo "Cleaning up..."
|
||||
@rm -rf $(OBJ) $(ELF) *.json .cache
|
||||
@find . -mindepth 1 -maxdepth 1 -type d -exec make --no-print-directory -C {} clean \;
|
||||
rm -rf $(OBJ) $(ELF) *.json .cache
|
||||
@for dir in $(SUBDIRS); do \
|
||||
$(MAKE) -C $$dir clean; \
|
||||
done
|
||||
|
||||
.PHONY: format
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue