File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11ifeq ($(shell uname) , Darwin)
2- LANGS_CC ?= arch -x86_64 gcc
3- LANGS_AS ?= nasm -g -f macho64 --gprefix _
2+ LANGS_CC ?= arch -x86_64 clang
3+ LANGS_AS ?= arch -x86_64 clang -c
44else
5- LANGS_CC ?= gcc
6- LANGS_AS ?= nasm -g -f elf64
5+ LANGS_CC ?= clang
6+ LANGS_AS ?= clang -c
77endif
88
99objs = \
Original file line number Diff line number Diff line change 11ifeq ($(shell uname) , Darwin)
2- LANGS_CC ?= arch -x86_64 gcc
3- LANGS_AS ?= nasm -g -f macho64 --gprefix _
2+ LANGS_CC ?= arch -x86_64 clang
3+ LANGS_AS ?= arch -x86_64 clang -c
44else
5- LANGS_CC ?= gcc
6- LANGS_AS ?= nasm -g -f elf64
5+ LANGS_CC ?= clang
6+ LANGS_AS ?= clang -c
77endif
88
99objs = \
Original file line number Diff line number Diff line change 11ifeq ($(shell uname) , Darwin)
2- LANGS_CC ?= arch -x86_64 gcc
3- LANGS_AS ?= nasm -g -f macho64 --gprefix _
2+ LANGS_CC ?= arch -x86_64 clang
3+ LANGS_AS ?= arch -x86_64 clang -c
44else
5- LANGS_CC ?= gcc
6- LANGS_AS ?= nasm -g -f elf64
5+ LANGS_CC ?= clang
6+ LANGS_AS ?= clang -c
77endif
88
99objs = \
Original file line number Diff line number Diff line change 11ifeq ($(shell uname) , Darwin)
2- LANGS_CC ?= arch -x86_64 gcc
3- LANGS_AS ?= nasm -g -f macho64 --gprefix _
2+ LANGS_CC ?= arch -x86_64 clang
3+ LANGS_AS ?= arch -x86_64 clang -c
44else
5- LANGS_CC ?= gcc
6- LANGS_AS ?= nasm -g -f elf64
5+ LANGS_CC ?= clang
6+ LANGS_AS ?= clang -c
77endif
88
99objs = \
Original file line number Diff line number Diff line change 11ifeq ($(shell uname) , Darwin)
2- LANGS_CC ?= arch -x86_64 gcc
3- LANGS_AS ?= nasm -g -f macho64 --gprefix _
2+ LANGS_CC ?= arch -x86_64 clang
3+ LANGS_AS ?= arch -x86_64 clang -c
44else
5- LANGS_CC ?= gcc
6- LANGS_AS ?= nasm -g -f elf64
5+ LANGS_CC ?= clang
6+ LANGS_AS ?= clang -c
77endif
88
99objs = \
Original file line number Diff line number Diff line change 1- UNAME := $(shell uname)
2- .PHONY : test submit.zip
3-
4- ifeq ($(UNAME ) , Darwin)
5- format =macho64
6- CC =arch -x86_64 gcc
1+ ifeq ($(shell uname) , Darwin)
2+ LANGS_CC ?= arch -x86_64 clang
3+ LANGS_AS ?= arch -x86_64 clang -c
74else
8- format =elf64
9- CC =gcc
5+ LANGS_CC ?= clang
6+ LANGS_AS ?= clang -c
107endif
118
129objs = \
@@ -15,9 +12,9 @@ objs = \
1512 values.o \
1613 io.o
1714
18- default : submit.zip
15+ .DEFAULT_GOAL : submit.zip
1916
20- submit.zip :
17+ submit.zip : $( shell find . -name " * .rkt" -o -name " * .c")
2118 zip submit.zip -r * \
2219 -x \* .[os] -x \* ~ -x \* zip \
2320 -x \* Zone.Identifier -x \*\* compiled\*\*
@@ -26,13 +23,13 @@ runtime.o: $(objs)
2623 ld -r $(objs ) -o runtime.o
2724
2825% .run : % .o runtime.o
29- $(CC ) runtime.o $< -o $@
26+ $(LANGS_CC ) runtime.o $< -o $@
3027
3128.c.o :
32- $(CC ) -fPIC -c -g -o $@ $<
29+ $(LANGS_CC ) -fPIC -c -g -o $@ $<
3330
3431.s.o :
35- nasm -g -f $( format ) -o $@ $<
32+ $( LANGS_AS ) -o $@ $<
3633
3734% .s : % .rkt
3835 cat $< | racket -t compile-stdin.rkt -m > $@
Original file line number Diff line number Diff line change 1- UNAME := $(shell uname)
2- .PHONY : test submit.zip
3-
41ifeq ($(shell uname) , Darwin)
5- LANGS_CC ?= arch -x86_64 gcc
6- LANGS_AS ?= nasm -g -f macho64 --gprefix _
2+ LANGS_CC ?= arch -x86_64 clang
3+ LANGS_AS ?= arch -x86_64 clang -c
74else
8- LANGS_CC ?= gcc
9- LANGS_AS ?= nasm -g -f elf64
5+ LANGS_CC ?= clang
6+ LANGS_AS ?= clang -c
107endif
118
129objs = \
@@ -15,9 +12,9 @@ objs = \
1512 values.o \
1613 io.o
1714
18- default : submit.zip
15+ .DEFAULT_GOAL : submit.zip
1916
20- submit.zip :
17+ submit.zip : $( shell find . -name " * .rkt" -o -name " * .c")
2118 zip submit.zip -r * \
2219 -x \* .[os] -x \* ~ -x \* zip \
2320 -x \* Zone.Identifier -x \*\* compiled\*\*
Original file line number Diff line number Diff line change 1- UNAME := $(shell uname)
2- .PHONY : test submit.zip
3-
41ifeq ($(shell uname) , Darwin)
5- LANGS_CC ?= arch -x86_64 gcc
6- LANGS_AS ?= nasm -g -f macho64 --gprefix _
2+ LANGS_CC ?= arch -x86_64 clang
3+ LANGS_AS ?= arch -x86_64 clang -c
74else
8- LANGS_CC ?= gcc
9- LANGS_AS ?= nasm -g -f elf64
5+ LANGS_CC ?= clang
6+ LANGS_AS ?= clang -c
107endif
118
129objs = \
@@ -15,9 +12,9 @@ objs = \
1512 values.o \
1613 io.o
1714
18- default : submit.zip
15+ .DEFAULT_GOAL : submit.zip
1916
20- submit.zip :
17+ submit.zip : $( shell find . -name " * .rkt" -o -name " * .c")
2118 zip submit.zip -r * \
2219 -x \* .[os] -x \* ~ -x \* zip \
2320 -x \* Zone.Identifier -x \*\* compiled\*\*
Original file line number Diff line number Diff line change 1- UNAME := $(shell uname)
2- .PHONY : test submit.zip
3-
41ifeq ($(shell uname) , Darwin)
5- LANGS_CC ?= arch -x86_64 gcc
6- LANGS_AS ?= nasm -g -f macho64 --gprefix _
2+ LANGS_CC ?= arch -x86_64 clang
3+ LANGS_AS ?= arch -x86_64 clang -c
74else
8- LANGS_CC ?= gcc
9- LANGS_AS ?= nasm -g -f elf64
5+ LANGS_CC ?= clang
6+ LANGS_AS ?= clang -c
107endif
118
129objs = \
@@ -15,9 +12,9 @@ objs = \
1512 values.o \
1613 io.o
1714
18- default : submit.zip
15+ .DEFAULT_GOAL : submit.zip
1916
20- submit.zip :
17+ submit.zip : $( shell find . -name " * .rkt" -o -name " * .c")
2118 zip submit.zip -r * \
2219 -x \* .[os] -x \* ~ -x \* zip \
2320 -x \* Zone.Identifier -x \*\* compiled\*\*
You can’t perform that action at this time.
0 commit comments