Rev 6 | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed
# $Id: Makefile 10 2024-08-26 13:37:23Z nishi $
PWD = `pwd`
PLATFORM = generic
PREFIX = /usr/local
FLAGS = PWD=$(PWD) PLATFORM=$(PLATFORM) EXTOBJS="`./check objs`" PREFIX="$(PREFIX)"
include Platform/$(PLATFORM).mk
.PHONY: all format clean ./Service check-config install
all: ./Service
./Service:: check-config
$(MAKE) -C $@ $(FLAGS)
check-config: check
./check
check: config.h check.c
cc -o check check.c
format:
clang-format --verbose -i `find . -name "*.c" -or -name "*.h"`
install: all
mkdir -p $(PREFIX)/lib/ircserv
mkdir -p $(PREFIX)/bin
$(MAKE) -C ./Service $(FLAGS) install
clean:
$(MAKE) -C ./Service $(FLAGS) clean
rm -f check