Verified Commit a7927053 authored by Camil Staps's avatar Camil Staps
Browse files

Allow building a 32-bit clm on a 64-bit (linux) platform

parent 40cfb77e
Pipeline #41005 passed with stage
in 1 minute and 30 seconds
CC=gcc
CFLAGS=-O -pedantic -Wall -W
CFLAGS=-m32 -O -pedantic -Wall -W
CPPFLAGS=-DGNU_C -DLINUX -DLINUX_ELF -DI486 # -DA_64
all: clm patch_bin
clm: clm.o cachingcompiler.o
gcc -s clm.o cachingcompiler.o -o clm
gcc -m32 -s clm.o cachingcompiler.o -o clm
# ./patch_bin clm CLEANLIB $(HOME)/Clean2/exe
# ./patch_bin clm CLEANPATH .:$(HOME)/Clean2/stdenv:$(HOME)/Clean2/iolib
......@@ -15,16 +15,16 @@ clm.o: clm.c cachingcompiler.h
# gcc -pedantic -Wall -c -DGNU_C -DSOLARIS -O clm.c # -mcpu=ppc603 clm.c
patch_bin: patch_bin.o
gcc -s patch_bin.o -o patch_bin
gcc -m32 -s patch_bin.o -o patch_bin
patch_bin.o: patch_bin.c
clms: clms.o cachingcompiler.o
gcc -s clms.o cachingcompiler.o -o clms
gcc -m32 -s clms.o cachingcompiler.o -o clms
# ./patch_bin clm CLEANLIB $(HOME)/Clean2/exe
clms: clms.o cachingcompiler.o
gcc -s clms.o cachingcompiler.o -o clms
gcc -m32 -s clms.o cachingcompiler.o -o clms
clms.o: clm.c cachingcompiler.h
gcc $(CFLAGS) $(CPPFLAGS) -c -o clms.o -DSYSTEM_LINKER clm.c
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment