Rev 2 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
# $Id: Makefile 3 2024-09-24 15:50:24Z nishi $
PWD = `pwd`
PLATFORM = generic
PREFIX = /usr/local
FLAGS = PWD=$(PWD) PLATFORM=$(PLATFORM) PREFIX=$(PREFIX)
.PHONY: all foramt clean ./Service ./Tool
all: ./Service ./Tool
./Service:: ./Common
$(MAKE) -C $@ $(FLAGS)
./Tool:: ./Common
$(MAKE) -C $@ $(FLAGS)
./Common::
$(MAKE) -C $@ $(FLAGS)
install:
$(MAKE) -C ./Service install $(FLAGS)
$(MAKE) -C ./Tool install $(FLAGS)
$(MAKE) -C ./Common install $(FLAGS)
mkdir -p $(PREFIX)/etc/
touch $(PREFIX)/etc/mlserv.aliases
format:
clang-format --verbose -i `find . -name "*.c" -or -name "*.h"`
clean:
$(MAKE) -C ./Service clean $(FLAGS)
$(MAKE) -C ./Tool clean $(FLAGS)
$(MAKE) -C ./Common clean $(FLAGS)