+++ /dev/null
-TARGETS = pdclib\r
-\r
-ifndef PDCLIB_PLATFORM_EXT\r
-endif\r
-\r
-ifndef PDCLIB_MALLOC\r
- $(error malloc to use unspecified. Set PDCLIB_MALLOC.)\r
-endif\r
-\r
-ifeq ($(PDCLIB_MALLOC),solar)\r
- pdclib_SOURCEDIRS += opt/malloc-solar\r
-else\r
-ifeq ($(PDCLIB_MALLOC),dlmalloc)\r
- pdclib_SOURCEDIRS += opt/dlmalloc\r
-else\r
- $(error Bad malloc specified. Supported: solar, ptmalloc3)\r
-endif\r
-endif\r
-\r
-# No: -Wcast-align; spurious for uses of char* to do pointer arithmetic\r
-# No: -Winline; generates spirous errors on -Os builds\r
-# No: -Wredundant-decls; redefinition of functions is legal and sometimes required\r
-# (especially applicable to PDCLib sources)\r
-# -Wno-unused-parameter; unused parameters are common in some interfaces\r
-WARNINGS := -Wall -Wextra -pedantic -Wshadow -Wpointer-arith -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wnested-externs -Wno-long-long -Wuninitialized -Wstrict-prototypes -Wno-unused-parameter\r
-\r
-pdclib_COMFLAGS += -ffreestanding $(WARNINGS)\r
-pdclib_CFLAGS += -std=c11\r
-pdclib_SOURCEDIRS += functions/_PDCLIB functions/ctype functions/inttypes \\r
- functions/locale functions/stdio functions/stdlib \\r
- functions/string/\r
-pdclib_OUT_TYPE += archive\r
-pdclib_INCLUDE_DIRS += $(pdclib_SOURCE_DIR)/includes $(pdclib_SOURCE_DIR)/internals\r
-\r
-ifdef PDCLIB_OPT_NOTHREAD\r
- pdclib_SOURCEDIRS += opt/nothread\r
- pdclib_INCLUDE_DIRS += $(pdclib_SOURCE_DIR)/opt/nothread\r
-endif\r
-\r
-ifdef PDCLIB_OPT_NOTIME\r
- pdclib_SOURCEDIRS += opt/notime\r
-endif
\ No newline at end of file