X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=Makefile;h=301fd02cc454a0d92058e20903b64196ef8c5e84;hb=8542d83e917ad42ed38403fa8204da27e170e189;hp=f5d210829fe1d61c25ba2d989b8eef76b6413b58;hpb=ef65b7aa8aa9801818dfe1de1f4a434719cc62e1;p=debian%2Fyforth diff --git a/Makefile b/Makefile index f5d2108..301fd02 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,3 @@ -OPTIMIZE = -O2 CC = gcc MATHLIB = -lm @@ -12,19 +11,17 @@ INCLUDES = block.h blocke.h config.h core.h coree.h defaults.h double.h \ floate.h locals.h localse.h macro.h memall.h search.h searche.h \ string.h tools.h toolse.h udio.h ver.h ycore.h yforth.h -all: - make div - make yforth - -yforth: $(OBJECTS) - $(CC) $(MATHLIB) -o yforth $(OBJECTS) +yforth: div.h $(OBJECTS) + $(CC) -o yforth $(LDFLAGS) $(OBJECTS) $(MATHLIB) +div.h: div + ./div + div: division.c - $(CC) -o div division.c - div > div.h + $(CC) -o div $(CFLAGS) division.c .c.o: - $(CC) -c -o $@ $(OPTIMIZE) $< + $(CC) -c -o $@ $(CFLAGS) $< clean: rm -f *.o yforth div.h div