tewi/Makefile
Nishi 4d8bc89134 add NO_SSL
git-svn-id: file:///raid/svn-personal/tewi/trunk@43 8739d7e6-ffea-ec47-b151-bdff447c6205
2024-09-18 09:19:03 +00:00

39 lines
880 B
Makefile

# $Id$
PWD = `pwd`
PLATFORM = generic
PREFIX = /usr/local
include Platform/$(PLATFORM).mk
FLAGS = PWD=$(PWD) PLATFORM=$(PLATFORM) PREFIX=$(PREFIX)
.PHONY: all format clean ./Server ./Common ./Module ./Manpage
all: ./Server ./Module ./Manpage
./Server/option: ./Server/option.c
cc -o $@ ./Server/option.c
./Server:: ./Common ./Server/option
$(MAKE) -C $@ $(FLAGS) EXTOBJS=`./Server/option objs ../` EXTLIBS=`./Server/option libs ../`
./Module:: ./Common
$(MAKE) -C $@ $(FLAGS)
./Common::
$(MAKE) -C $@ $(FLAGS)
./Manpage::
$(MAKE) -C $@ $(FLAGS)
format:
clang-format --verbose -i `find ./Server ./Common ./Module "(" -name "*.c" -or -name "*.h" ")" -and -not -name "strptime.*"` config.h
clean:
$(MAKE) -C ./Server $(FLAGS) clean
$(MAKE) -C ./Module $(FLAGS) clean
$(MAKE) -C ./Common $(FLAGS) clean
$(MAKE) -C ./Manpage $(FLAGS) clean
rm -f ./Server/option