--- /dev/null
+# This is a list of all non-source files that are part of the distribution.
+AUXFILES := Makefile Readme.txt
+
+SRCFILES := $(shell find . -name "*.c" -mindepth 1 -maxdepth 3)
+HDRFILES := $(shell find . -name "*.h" -mindepth 1 -maxdepth 3)
+OBJFILES := $(patsubst %.c,%.o,$(SRCFILES))
+DEPFILES := $(patsubst %.c,%.d,$(SRCFILES))
+ALLFILES := $(SRCFILES) $(HDRFILES) $(AUXFILES)
+
+CPPFLAGS := -MMD -MP
+CFLAGS := -g -std=c99 -I./internals/
+
+.PHONY: all clean dist
+
+all: $(OBJFILES)
+ ar r pdclib.a $(OBJFILES)
+
+-include $(DEPFILES)
+
+clean:
+ -@for file in $(OBJFILES) $(DEPFILES) pdclib.a; do if [ -f $$file ]; then rm $$file; fi; done
+
+dist:
+ @tar czf pdclib.tgz $(ALLFILES)
+
+%.o: %.c Makefile
+ $(CC) $(MODE) -c $(CPPFLAGS) $(CFLAGS) $< -o $@
+
Permission is granted to use, modify, and / or redistribute at will.
*/
+#include <_PDCLIB_aux.h>
#include <string.h>
void * memcpy( void * _PDCLIB_restrict s1, const void * _PDCLIB_restrict s2, size_t n )
Permission is granted to use, modify, and / or redistribute at will.
*/
+#include <_PDCLIB_aux.h>
#include <string.h>
char * strncat( char * _PDCLIB_restrict s1, const char * _PDCLIB_restrict s2, size_t n )
Permission is granted to use, modify, and / or redistribute at will.
*/
+#include <_PDCLIB_aux.h>
#include <string.h>
char * strncpy( char * _PDCLIB_restrict s1, const char * _PDCLIB_restrict s2, size_t n )
Permission is granted to use, modify, and / or redistribute at will.
*/
+#include <_PDCLIB_aux.h>
#include <string.h>
char * strtok( char * _PDCLIB_restrict s1, const char * _PDCLIB_restrict s2 )
Permission is granted to use, modify, and / or redistribute at will.
*/
+#include <_PDCLIB_aux.h>
#include <string.h>
/* TODO: Dummy function, no locale support yet. */