gbdk-2020 | GameBoy Development Kit |
| download: https://git.y1.nz/archives/gbdk.tar.gz | |
| README | Files | Log | Refs | LICENSE |
gbdk-lib/libc/Makefile
1 # Makefile for libc
2
3 .EXPORT_ALL_VARIABLES:
4
5 ifeq ($(PORTS),)
6 PORTS = sm83 z80 mos6502
7 endif
8
9 ifeq ($(PLATFORMS),)
10 PLATFORMS = gb ap duck gg sms msxdos nes
11 endif
12
13 TOPDIR = ..
14
15 CSRC = atoi.c atol.c isalpha.c isdigit.c \
16 islower.c isspace.c isupper.c \
17 sprintf.c printf.c puts.c scanf.c strcat.c string.c \
18 strncat.c strncmp.c strncpy.c time.c \
19 tolower.c toupper.c \
20 __assert.c \
21 _modulong.c _modslong.c _divulong.c _divslong.c _mullong.c \
22 bsearch.c qsort.c atomic_flag_clear.c \
23 free.c malloc.c realloc.c calloc.c
24
25 include $(TOPDIR)/Makefile.common
26
27 all: ports platforms
28
29 clean: port-clean ports-clean platform-clean
30
31 ports:
32 for i in $(PORTS); do make port THIS=$$i PORT=$$i || exit 1; done
33
34 platforms:
35 for j in $(PORTS); do for i in $(PLATFORMS); do if [ -d "targets/$$j/$$i" ]; then make -C targets/$$j/$$i platform THIS=$$i || exit 1; fi done done
36
37 # Make all the std libs
38 # Make all the port specific libs
39
40 # Uses the LIB <- OBJ rule from Makefile.rules
41 port: port-clean $(LIB)
42 make -C asm/$(PORT) port
43
44 port-clean:
45 rm -f $(LIBC_OBJ) $(CLEANSPEC)
46
47 ports-clean:
48 for i in $(PORTS); do make -C asm/$$i clean THIS=$$i; done
49
50 platform-clean:
51 for j in $(PORTS); do for i in $(PLATFORMS); do if [ -d "targets/$$j/$$i" ]; then make -C targets/$$j/$$i clean THIS=$$i; fi done done
52
53 include Makefile.rules
This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.