source: Main/trunk/Makefile@ 46

Last change on this file since 46 was 44, checked in by Nishi, on Sep 18, 2024 at 6:37:09 PM

fix strptime

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