--- /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),ptmalloc3)\r
+ pdclib_SOURCEDIRS += opt/ptmalloc3\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
+WARNINGS := -Wall -Wextra -pedantic -Wno-unused-parameter -Wshadow -Wpointer-arith -Wwrite-strings -Wmissing-prototypes -Wmissing-declarations -Wredundant-decls -Wnested-externs -Wno-long-long -Wuninitialized -Wstrict-prototypes\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
\ No newline at end of file