gbdk-releases/gbdk-lib/libc/Makefile

44 lines
1,005 B
Makefile
Raw Permalink Normal View History

2015-01-10 16:25:06 +01:00
# Makefile for libc
2015-01-10 16:25:08 +01:00
.EXPORT_ALL_VARIABLES:
2015-01-10 16:25:06 +01:00
TOPDIR = ..
2015-01-10 16:25:09 +01:00
CSRC = abs.c atoi.c atol.c isalpha.c isdigit.c \
islower.c isspace.c isupper.c itoa.c labs.c \
printf.c puts.c reverse.c scanf.c strcat.c string.c \
strlen.c strncat.c strncmp.c strncpy.c time.c \
tolower.c toupper.c \
_modulong.c _modslong.c _divulong.c _divslong.c _mullong.c
# free.c malloc.c realloc.c calloc.c ltoa.c
2015-01-10 16:25:06 +01:00
2015-01-10 16:25:09 +01:00
include $(TOPDIR)/Makefile.common
2015-01-10 16:25:06 +01:00
all: ports platforms
clean: port-clean ports-clean platform-clean
ports:
2015-01-10 16:25:09 +01:00
for i in $(PORTS); do make port THIS=$$i PORT=$$i; done
2015-01-10 16:25:06 +01:00
platforms:
2015-01-10 16:25:08 +01:00
for i in $(PLATFORMS); do make -C $$i platform THIS=$$i; done
2015-01-10 16:25:06 +01:00
# Make all the std libs
# Make all the port specific libs
2015-01-10 16:25:08 +01:00
# Uses the LIB <- OBJ rule from Makefile.rules
port: port-clean $(LIB)
2015-01-10 16:25:06 +01:00
make -C asm/$(PORT) port
port-clean:
rm -f $(LIBC_OBJ) $(CLEANSPEC)
ports-clean:
2015-01-10 16:25:08 +01:00
for i in $(PORTS); do make -C asm/$$i clean THIS=$$i; done
2015-01-10 16:25:06 +01:00
platform-clean:
for i in $(PLATFORMS); do make -C $$i clean PLAT=$$i; done
2015-01-10 16:25:08 +01:00
include Makefile.rules