Skip to content
Snippets Groups Projects
Commit 902adf89 authored by Henrik (Grubba) Grubbström's avatar Henrik (Grubba) Grubbström
Browse files

Now supports other compilers than gcc on Solaris for purify et al.

Rev: src/Makefile.in:1.53
parent d5efba3f
No related branches found
No related tags found
No related merge requests found
......@@ -57,6 +57,8 @@ OTHERFLAGS=@CFLAGS@ @CPPFLAGS@ $(OSFLAGS) $(OPTIMIZE) $(WARN) $(PROFIL)
NOOPTFLAGS=@CFLAGS@ @CPPFLAGS@ $(OSFLAGS) $(WARN) $(PROFIL)
CFLAGS=$(PREFLAGS) $(OTHERFLAGS)
SMARTLINK=@SMARTLINK@
REALCC=@REALCC@
CC=@CC@
CPP=@CPP@
......@@ -130,17 +132,17 @@ pike: $(OBJ) compile_interpret modules/linker_options
# purify
pure: $(OBJ) compile_interpret module_objects
-@mv pike pike.old 2>/dev/null || true
purify -free-queue-length=500 -inuse-at-exit=yes -chain-length=12 gcc $(LDFLAGS) $(OBJ) interpret.o `cat modules/linker_options` $(LIBS) -o pike
$(SMARTLINK) purify -free-queue-length=500 -inuse-at-exit=yes -chain-length=12 $(REALCC) $(LDFLAGS) $(OBJ) interpret.o `cat modules/linker_options` $(LIBS) -o pike
# purecov
cover: $(OBJ) compile_interpret module_objects
-@mv pike pike.old 2>/dev/null || true
purecov purify -free-queue-length=500 -inuse-at-exit=yes -chain-length=12 gcc $(LDFLAGS) $(OBJ) interpret.o `cat modules/linker_options` $(LIBS) -o pike
$(SMARTLINK) purecov purify -free-queue-length=500 -inuse-at-exit=yes -chain-length=12 $(REALCC) $(LDFLAGS) $(OBJ) interpret.o `cat modules/linker_options` $(LIBS) -o pike
# quantify
quant: $(OBJ) compile_interpret module_objects
-@mv pike pike.old 2>/dev/null || true
quantify gcc $(LDFLAGS) $(OBJ) interpret.o `cat modules/linker_options` $(LIBS) -o pike
$(SMARTLINK) quantify $(REALCC) $(LDFLAGS) $(OBJ) interpret.o `cat modules/linker_options` $(LIBS) -o pike
# Several optimizers have problems with interpret.c
# First try compiling with optimization and if that doesn't work, without.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment