source: Main/trunk/Makefile@ 21

Last change on this file since 21 was 17, checked in by Nishi, on Sep 14, 2024 at 2:41:07 AM

module system kinda works

  • Property svn:keywords set to Id
File size: 534 bytes
Line 
1# $Id: Makefile 17 2024-09-13 17:41:07Z nishi $
2
3PWD = `pwd`
4PLATFORM = generic
5PREFIX = /usr/local
6
7FLAGS = PWD=$(PWD) PLATFORM=$(PLATFORM) PREFIX=$(PREFIX)
8
9.PHONY: all format clean ./Server ./Common ./Module
10
11all: ./Server ./Module
12
13./Server:: ./Common
14 $(MAKE) -C $@ $(FLAGS)
15
16./Module:: ./Common
17 $(MAKE) -C $@ $(FLAGS)
18
19./Common::
20 $(MAKE) -C $@ $(FLAGS)
21
22format:
23 clang-format --verbose -i `find ./Server ./Common ./Module -name "*.c" -or -name "*.h"`
24
25clean:
26 $(MAKE) -C ./Server $(FLAGS) clean
27 $(MAKE) -C ./Module $(FLAGS) clean
28 $(MAKE) -C ./Common $(FLAGS) clean
Note: See TracBrowser for help on using the repository browser.