source: Main/trunk/Makefile@ 80

Last change on this file since 80 was 80, checked in by Nishi, on Sep 19, 2024 at 8:13:18 PM

installer

  • Property svn:keywords set to Id
File size: 1.1 KB
RevLine 
[2]1# $Id: Makefile 80 2024-09-19 11:13:18Z nishi $
2
3PWD = `pwd`
4PLATFORM = generic
[4]5PREFIX = /usr/local
[2]6
[25]7include Platform/$(PLATFORM).mk
8
[2]9FLAGS = PWD=$(PWD) PLATFORM=$(PLATFORM) PREFIX=$(PREFIX)
10
[53]11.PHONY: all format clean ./Server ./Common ./Module ./Manpage get-version
[2]12
[37]13all: ./Server ./Module ./Manpage
[2]14
[43]15./Server/option: ./Server/option.c
16 cc -o $@ ./Server/option.c
[2]17
[43]18./Server:: ./Common ./Server/option
[44]19 $(MAKE) -C $@ $(FLAGS) EXTOBJS="`./Server/option objs ../`" EXTLIBS="`./Server/option libs ../`" EXTCFLAGS="`./Server/option cflags ../`" EXTLDFLAGS="`./Server/option ldflags ../`"
[43]20
[17]21./Module:: ./Common
22 $(MAKE) -C $@ $(FLAGS)
23
[2]24./Common::
25 $(MAKE) -C $@ $(FLAGS)
26
[37]27./Manpage::
28 $(MAKE) -C $@ $(FLAGS)
29
[2]30format:
[43]31 clang-format --verbose -i `find ./Server ./Common ./Module "(" -name "*.c" -or -name "*.h" ")" -and -not -name "strptime.*"` config.h
[2]32
[53]33get-version:
34 @grep "define TW_VERSION" Server/tw_version.h | grep -Eo '"[^\]+' | sed -E 's/^"//g'
35
[2]36clean:
37 $(MAKE) -C ./Server $(FLAGS) clean
[17]38 $(MAKE) -C ./Module $(FLAGS) clean
[2]39 $(MAKE) -C ./Common $(FLAGS) clean
[37]40 $(MAKE) -C ./Manpage $(FLAGS) clean
[80]41 rm -f ./Server/option
Note: See TracBrowser for help on using the repository browser.