blob: 720486aafdf095e9e4a342e724eb0750459ae015 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
# Copyright 2022 Gabriel Jensen.
# This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0.
# If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/.
ifeq ($(DEBUG),)
DEBUG := false
endif
.PHONY: agbx clean demo install purge
agbx:
$(MAKE) -C$(@) DEBUG=$(DEBUG)
demo: agbx
$(MAKE) -C$(@)
install: agbx
mkdir -pvm755 "$(HDRDIR)/agbx"
mkdir -pvm755 "$(LIBDIR)"
install -vm644 "agbx/include/agbx/"*".h" "$(HDRDIR)/agbx"
install -vm755 "agbx/libagbx.a" "$(LIBDIR)"
clean:
$(MAKE) -Cagbx clean
$(MAKE) -Cdemo clean
purge:
$(MAKE) -Cagbx purge
$(MAKE) -Cdemo purge
|