X-Git-Url: https://pd.if.org/git/?a=blobdiff_plain;f=Makefile;h=9aa1c89eb3128824eaa3746c540ff256fbc89ec3;hb=9ee0e8c5b5df0b114218e28753e6c0291cb356a3;hp=9bfc7615c78ffeae0d8ba5965f4f8b48c4bf13a9;hpb=c40de16a50d2f05c2cc5c2ecefae5bbbbc3596d0;p=pdclib diff --git a/Makefile b/Makefile index 9bfc761..9aa1c89 100644 --- a/Makefile +++ b/Makefile @@ -6,7 +6,7 @@ AUXFILES := Makefile Readme.txt PROJDIRS := functions includes internals SRCFILES := $(shell find $(PROJDIRS) -mindepth 1 -maxdepth 3 -name "*.c") HDRFILES := $(shell find $(PROJDIRS) -mindepth 1 -maxdepth 3 -name "*.h") -INTFILES := atomax digits lengthmods seed strtox_main strtox_prelim rename remove _Exit +INTFILES := _Exit atomax digits lengthmods print rename remove seed strtox_main strtox_prelim OBJFILES := $(patsubst %.c,%.o,$(SRCFILES)) TSTFILES := $(patsubst %.c,%.t,$(SRCFILES)) REGFILES := $(filter-out $(patsubst %,functions/_PDCLIB/%.r,$(INTFILES)),$(patsubst %.c,%.r,$(SRCFILES))) @@ -46,6 +46,9 @@ todolist: fixmelist: -@for file in $(ALLFILES); do grep -H FIXME $$file; done; true +find: + @find functions/ includes/ internals/ platform/ -name "*\.[ch]" -type f | xargs grep $$FIND + %.o: %.c Makefile @echo " CC $@" @$(CC) $(CFLAGS) -Wall -DNDEBUG -MMD -MP -MT "$*.d $*.t" -g -std=c99 -I./includes -I./internals -c $< -o $@