diff -r c21ec28fd5f8 pure-reduce/Makefile
|
|
|
28 | 28 | bindir = $(shell pkg-config pure --variable prefix)/bin |
29 | 29 | binstalldir = $(addprefix $(DESTDIR), $(bindir)) |
30 | 30 | |
| 31 | CFLAGS = -O2 |
| 32 | ALL_CFLAGS = $(CFLAGS) $(EXTRA_CFLAGS) |
| 33 | |
31 | 34 | # Special flags and objects needed to build the reduce dll pilfered from |
32 | 35 | # reduce-algebra/csl/new-embedded/procedural/. |
33 | 36 | |
34 | | CFLAGS=-O2 -I. $(shell pkg-config pure --cflags) -DPAGE_BITS=19 -DHAVE_CONFIG_H=1 -DEMBEDDED=1 -w |
| 37 | EXTRA_CFLAGS = -I. $(shell pkg-config pure --cflags) -DPAGE_BITS=19 -DHAVE_CONFIG_H=1 -DEMBEDDED=1 -w |
35 | 38 | |
36 | 39 | objects = 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 |
37 | 40 | |
… |
… |
|
65 | 68 | cp reduce-algebra/csl/new-embedded/reduce-image/reduce$(EXE) . |
66 | 69 | |
67 | 70 | reduce-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)" |
69 | 72 | |
70 | 73 | reduce$(DLL): $(addprefix reduce-algebra/csl/new-embedded/procedural/, $(objects)) proc-add.o |
71 | 74 | $(CC) $(shared) $(PIC) $(dllname) -o reduce$(DLL) $^ |
72 | 75 | |
73 | 76 | $(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)" |
75 | 78 | |
76 | 79 | proc-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 $@ |
78 | 81 | |
79 | 82 | logs: tests.log |
80 | 83 | |