mirror of
https://github.com/genodelabs/genode.git
synced 2025-01-31 08:25:38 +00:00
parent
d372afd81e
commit
85daf1b3b2
@ -1,11 +1,12 @@
|
||||
OBJECTS := main.o bogomips.o
|
||||
GEN_DIR = $(LINUX_DIR)/..
|
||||
CC_MARCH ?=
|
||||
|
||||
cpu_bench: $(OBJECTS)
|
||||
g++ $(OBJECTS) -o $@
|
||||
|
||||
main.o: $(LINUX_DIR)/main.cc $(GEN_DIR)/bogomips.h
|
||||
g++ -c -I$(GEN_DIR) -O2 -Wall -Wextra -Weffc++ -std=gnu++11 $< -o $@
|
||||
g++ -c -I$(GEN_DIR) $(CC_MARCH) -mcpu=native -O2 -Wall -Wextra -Weffc++ -std=gnu++11 $< -o $@
|
||||
|
||||
bogomips.o: ../bogomips.s
|
||||
gcc -c -O2 -Wall -Wextra $< -o $@
|
||||
|
@ -1,3 +1,5 @@
|
||||
LINUX_DIR = $(PWD)/../../../linux
|
||||
|
||||
CC_MARCH = -marm
|
||||
|
||||
include $(LINUX_DIR)/Makefile.inc
|
||||
|
Loading…
x
Reference in New Issue
Block a user