source: Main/trunk/Makefile@ 23

Last change on this file since 23 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
RevLine 
[2]1# $Id: Makefile 17 2024-09-13 17:41:07Z nishi $
2
3PWD = `pwd`
4PLATFORM = generic
[4]5PREFIX = /usr/local
[2]6
7FLAGS = PWD=$(PWD) PLATFORM=$(PLATFORM) PREFIX=$(PREFIX)
8
[17]9.PHONY: all format clean ./Server ./Common ./Module
[2]10
[17]11all: ./Server ./Module
[2]12
13./Server:: ./Common
14 $(MAKE) -C $@ $(FLAGS)
15
[17]16./Module:: ./Common
17 $(MAKE) -C $@ $(FLAGS)
18
[2]19./Common::
20 $(MAKE) -C $@ $(FLAGS)
21
22format:
[17]23 clang-format --verbose -i `find ./Server ./Common ./Module -name "*.c" -or -name "*.h"`
[2]24
25clean:
26 $(MAKE) -C ./Server $(FLAGS) clean
[17]27 $(MAKE) -C ./Module $(FLAGS) clean
[2]28 $(MAKE) -C ./Common $(FLAGS) clean
Note: See TracBrowser for help on using the repository browser.