X-Git-Url: https://pd.if.org/git/?p=pdclib;a=blobdiff_plain;f=Makefile;h=9894792dc3b028a35a74b0e50cc4c738254a9e67;hp=6abc6967a811349a8c127c8160cccad982dba444;hb=61cd4c099107b37d2b485c2ceb21ad661c899309;hpb=0c316ee3b4dc0712797877f5dc0f4a789646154d diff --git a/Makefile b/Makefile index 6abc696..9894792 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 cleanstream fflush 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 closeall # 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/%,%,$@)"