X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=Makefile;h=3331fa51dac649988e8df5bc44009edd17e5d5ab;hb=4de9ebf92ea3d057a9ce17841ff7939b1dfebc67;hp=9c5b977b500dae2f1d4bd49cb10b04fd5744c26f;hpb=9f0fa47bae580e41b5b4bc507a0409c1978a262f;p=pdclib diff --git a/Makefile b/Makefile index 9c5b977..3331fa5 100644 --- a/Makefile +++ b/Makefile @@ -13,7 +13,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 open print scan remove rename seed stdinit strtox_main strtox_prelim filemode eol errno seek prepread prepwrite allocpages +INTFILES := _Exit atomax digits open print scan remove rename seed stdinit strtox_main strtox_prelim filemode eol errno seek prepread prepwrite allocpages tmpfilename # All object files in the library OBJFILES := $(patsubst %.c,%.o,$(SRCFILES)) # All test drivers (.t) @@ -130,7 +130,7 @@ help: %.o: %.c Makefile @echo " CC $(patsubst functions/%,%,$@)" - @$(CC) $(CFLAGS) -MMD -MP -MT "$*.d $*.t" -I./includes -c $< -o $@ + @$(CC) $(CFLAGS) -MMD -MP -MT "$*.d $*.t $*.o" -I./includes -c $< -o $@ %.t: %.c Makefile pdclib.a @echo " CC $(patsubst functions/%,%,$@)"