Ticket #45152: make.diff

File make.diff, 1.8 KB (added by agraef (Albert Graef), 10 years ago)

Makefile patch

  • Makefile

    diff -r c21ec28fd5f8 pure-reduce/Makefile
     
    2828bindir      = $(shell pkg-config pure --variable prefix)/bin
    2929binstalldir = $(addprefix $(DESTDIR), $(bindir))
    3030
     31CFLAGS = -O2
     32ALL_CFLAGS = $(CFLAGS) $(EXTRA_CFLAGS)
     33
    3134# Special flags and objects needed to build the reduce dll pilfered from
    3235# reduce-algebra/csl/new-embedded/procedural/.
    3336
    34 CFLAGS=-O2 -I. $(shell pkg-config pure --cflags) -DPAGE_BITS=19 -DHAVE_CONFIG_H=1 -DEMBEDDED=1 -w
     37EXTRA_CFLAGS = -I. $(shell pkg-config pure --cflags) -DPAGE_BITS=19 -DHAVE_CONFIG_H=1 -DEMBEDDED=1 -w
    3538
    3639objects = arith01.o arith02.o arith03.o arith04.o arith05.o arith06.o arith07.o arith08.o arith09.o arith10.o arith11.o arith12.o bytes.o char.o driver.o embedcsl.o cslmpi.o cslread.o eval1.o eval2.o eval3.o eval4.o fasl.o fns1.o fns2.o fns3.o fwin.o gc.o preserve.o print.o restart.o sysfwin.o termed.o stubs.o
    3740
     
    6568        cp reduce-algebra/csl/new-embedded/reduce-image/reduce$(EXE) .
    6669
    6770reduce-algebra/csl/new-embedded/reduce.img reduce-algebra/csl/new-embedded/reduce-image/reduce$(EXE):
    68         $(MAKE) -C reduce-algebra/csl/new-embedded CFLAGS="$(CFLAGS)"
     71        $(MAKE) -C reduce-algebra/csl/new-embedded CFLAGS="$(ALL_CFLAGS)"
    6972
    7073reduce$(DLL): $(addprefix reduce-algebra/csl/new-embedded/procedural/, $(objects)) proc-add.o
    7174        $(CC) $(shared) $(PIC) $(dllname) -o reduce$(DLL) $^
    7275
    7376$(addprefix reduce-algebra/csl/new-embedded/procedural/, $(objects)):
    74         $(MAKE) -C reduce-algebra/csl/new-embedded/procedural CFLAGS="$(CFLAGS) $(PIC)"
     77        $(MAKE) -C reduce-algebra/csl/new-embedded/procedural CFLAGS="$(ALL_CFLAGS) $(PIC)"
    7578
    7679proc-add.o: proc-add.c
    77         $(CC) -Ireduce-algebra/csl/new-embedded/procedural $(CFLAGS) $(PIC) -c $< -o $@
     80        $(CC) -Ireduce-algebra/csl/new-embedded/procedural $(ALL_CFLAGS) $(PIC) -c $< -o $@
    7881
    7982logs: tests.log
    8083