X-Git-Url: https://pd.if.org/git/?p=pdclib;a=blobdiff_plain;f=Makefile;h=24cfbaeafd8181a519c04c1939dbaaa07ccbea3d;hp=bbcba46bd9c8e3f840e026805296845a4d754b00;hb=2a3d817da74fcd2ad18b6747f9e8bef8883ad49c;hpb=3645cf5a3d3d1344b7863b5202a2d107c0f1964b diff --git a/Makefile b/Makefile index bbcba46..24cfbae 100644 --- a/Makefile +++ b/Makefile @@ -11,9 +11,11 @@ REGFILES := $(filter-out $(INTFILES),$(patsubst %.c,%.r,$(SRCFILES))) DEPFILES := $(patsubst %.c,%.d,$(SRCFILES)) ALLFILES := $(SRCFILES) $(HDRFILES) $(AUXFILES) -.PHONY: all clean dist +.PHONY: clean dist test regtest -all: $(OBJFILES) +all: pdclib.a + +pdclib.a: $(OBJFILES) @ar r pdclib.a $? test: $(TSTFILES) @@ -31,10 +33,10 @@ dist: @tar czf pdclib.tgz $(ALLFILES) %.o: %.c Makefile - @$(CC) -Wall -DNDEBUG -MMD -MP -MT "$*.d $*.t" -g -std=c99 -I./internals -c $< -o $@ + @$(CC) -Wall -DNDEBUG -MMD -MP -MT "$*.d $*.t" -g -std=c99 -I./includes -I./internals -c $< -o $@ -%.t: %.c Makefile all - @$(CC) -Wall -DTEST -std=c99 -I./internals/ $< pdclib.a -o $@ +%.t: %.c Makefile pdclib.a + @$(CC) -Wall -DTEST -std=c99 -I./includes -I./internals $< pdclib.a -o $@ %.r: %.c Makefile - @$(CC) -Wall -DTEST -DREGTEST -std=c99 -I./internals/ $< -o $@ + @$(CC) -Wall -DTEST -DREGTEST -std=c99 -I./internals $< -o $@