]> pd.if.org Git - pdclib/blobdiff - Makefile
When pdclib.a did not exist, make did print a message. Fixed.
[pdclib] / Makefile
index 41469adcf99b8f1c2fa9a0ec0bd939ab07ecc75f..11e1cdc9c1e48e95a7649fbd22fa0d263ba9c62d 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -10,7 +10,7 @@ SRCFILES := $(shell find $(PROJDIRS) -mindepth 1 -maxdepth 3 -name "*.c")
 # All header files of the project
 HDRFILES := $(shell find $(PROJDIRS) -mindepth 1 -maxdepth 3 -name "*.h")
 # All .c files in functions/_PDCLIB that do not have a regression test driver
-INTFILES := _Exit atomax digits print rename remove seed strtox_main strtox_prelim
+INTFILES := _Exit atomax digits open print rename remove seed stdinit strtox_main strtox_prelim
 # All object files in the library
 OBJFILES := $(patsubst %.c,%.o,$(SRCFILES))
 # All test drivers (.t)
@@ -34,7 +34,7 @@ CFLAGS := -Wall -pedantic -Wshadow -Wpointer-arith -Wcast-align -Wwrite-strings
 all: pdclib.a
 
 pdclib.a: $(OBJFILES)
-       @ar r pdclib.a $?
+       @ar rc pdclib.a $?
 
 test: $(FILE)
        $(FILE)