Subversion Repositories Tewi

Rev

Rev 6 | Rev 25 | Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed

# $Id: Makefile 17 2024-09-13 17:41:07Z nishi $

PWD = `pwd`
PLATFORM = generic
PREFIX = /usr/local

FLAGS = PWD=$(PWD) PLATFORM=$(PLATFORM) PREFIX=$(PREFIX)

.PHONY: all format clean ./Server ./Common ./Module

all: ./Server ./Module

./Server:: ./Common
        $(MAKE) -C $@ $(FLAGS)

./Module:: ./Common
        $(MAKE) -C $@ $(FLAGS)

./Common::
        $(MAKE) -C $@ $(FLAGS)

format:
        clang-format --verbose -i `find ./Server ./Common ./Module -name "*.c" -or -name "*.h"`

clean:
        $(MAKE) -C ./Server $(FLAGS) clean
        $(MAKE) -C ./Module $(FLAGS) clean
        $(MAKE) -C ./Common $(FLAGS) clean